You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by mauro2java2011 <ma...@gmail.com> on 2013/09/05 16:03:27 UTC
whi into the propertiess of declared resource it is not present the
= like for simple tomcat?
A curiosity:
for dclare a resource , i have to declare it like below.
<Resource id="My Unmanaged DataSource" type="DataSource">
JdbcDriver org.hsqldb.jdbcDriver
JdbcUrl jdbc:hsqldb:file:data/hsqldb/hsqldb
UserName sa
Password
JtaManaged false
</Resource>
But into tomcat simple for each properties of resourece i have to put the
simbol =
<Context ...>
...
<Resource name="jdbc/EmployeeDB"
auth="Container"
type="javax.sql.DataSource"
username="dbusername"
password="dbpassword"
driverClassName="org.hsql.jdbcDriver"
url="jdbc:HypersonicSQL:database"
maxActive="8"
maxIdle="4"/>
...
</Context>
For curiosity i ask how tomee read and set the properties without the =
from the key and the corrispondnt value.
--
View this message in context: http://openejb.979440.n4.nabble.com/whi-into-the-propertiess-of-declared-resource-it-is-not-present-the-like-for-simple-tomcat-tp4664992.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: whi into the propertiess of declared resource it is not present
the = like for simple tomcat?
Posted by Romain Manni-Bucau <rm...@gmail.com>.
We read text as properties, see SuperProperties class for details
Le 5 sept. 2013 18:53, "mauro2java2011" <ma...@gmail.com> a écrit :
> but the format for properties int oa file xml is not like the below?????
>
> examples-xml.properties
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE properties SYSTEM
> "http://java.sun.com/dtd/properties.dtd">
> <properties>
> <comment>This is easy!</comment>
> <entry
> key="url.coloradosoftwaresummit">http://www.softwaresummit.com/</entry>
> <entry key="url.rmoug">http://www.rmoug.org/</entry>
> <entry key="url.blog.dustin">http://marxsoftware.blogspot.com/</entry>
> <entry key="url.javaworld">http://www.javaworld.com/</entry>
> <entry key="url.otn">http://www.oracle.com/technology/index.html</entry>
> </properties>
>
> I have into that example the <entry key="blabla">the value of
> propertie</entry>
>
> but into resource i not have the <entry></entry> tags ......
>
> my ask it is :
> how the properties to be reads into tomee if i nt have the tags ??
> the process with them be reads?????
>
>
> <Resource id="My Unmanaged DataSource" type="DataSource">
> JdbcDriver org.hsqldb.jdbcDriver
> JdbcUrl jdbc:hsqldb:file:data/hsqldb/hsqldb
> UserName sa
> Password
> JtaManaged false
> </Resource>
>
> i not see tag <Entry> and not key attributes
>
> -
>
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/whi-into-the-propertiess-of-declared-resource-it-is-not-present-the-like-for-simple-tomcat-tp4664992p4664997.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: whi into the propertiess of declared resource it is not present
the = like for simple tomcat?
Posted by mauro2java2011 <ma...@gmail.com>.
but the format for properties int oa file xml is not like the below?????
examples-xml.properties
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM
"http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>This is easy!</comment>
<entry
key="url.coloradosoftwaresummit">http://www.softwaresummit.com/</entry>
<entry key="url.rmoug">http://www.rmoug.org/</entry>
<entry key="url.blog.dustin">http://marxsoftware.blogspot.com/</entry>
<entry key="url.javaworld">http://www.javaworld.com/</entry>
<entry key="url.otn">http://www.oracle.com/technology/index.html</entry>
</properties>
I have into that example the <entry key="blabla">the value of
propertie</entry>
but into resource i not have the <entry></entry> tags ......
my ask it is :
how the properties to be reads into tomee if i nt have the tags ??
the process with them be reads?????
<Resource id="My Unmanaged DataSource" type="DataSource">
JdbcDriver org.hsqldb.jdbcDriver
JdbcUrl jdbc:hsqldb:file:data/hsqldb/hsqldb
UserName sa
Password
JtaManaged false
</Resource>
i not see tag <Entry> and not key attributes
-
--
View this message in context: http://openejb.979440.n4.nabble.com/whi-into-the-propertiess-of-declared-resource-it-is-not-present-the-like-for-simple-tomcat-tp4664992p4664997.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: whi into the propertiess of declared resource it is not present
the = like for simple tomcat?
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
Cause openejb config is properties oriented (historical reason) and cause
otherwise some attributes cant be used (not an issue for tomcat)
Le 5 sept. 2013 16:05, "mauro2java2011" <ma...@gmail.com> a écrit :
> A curiosity:
>
> for dclare a resource , i have to declare it like below.
>
> <Resource id="My Unmanaged DataSource" type="DataSource">
> JdbcDriver org.hsqldb.jdbcDriver
> JdbcUrl jdbc:hsqldb:file:data/hsqldb/hsqldb
> UserName sa
> Password
> JtaManaged false
> </Resource>
>
> But into tomcat simple for each properties of resourece i have to put the
> simbol =
> <Context ...>
> ...
> <Resource name="jdbc/EmployeeDB"
> auth="Container"
> type="javax.sql.DataSource"
> username="dbusername"
> password="dbpassword"
> driverClassName="org.hsql.jdbcDriver"
> url="jdbc:HypersonicSQL:database"
> maxActive="8"
> maxIdle="4"/>
> ...
> </Context>
>
> For curiosity i ask how tomee read and set the properties without the =
> from the key and the corrispondnt value.
>
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/whi-into-the-propertiess-of-declared-resource-it-is-not-present-the-like-for-simple-tomcat-tp4664992.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>