you can in resources.xml but in the deployment you use, if that's a
war then in WEB-INF, if it is just a jar then META-INF is fine


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-01 15:23 GMT+02:00 mauro2java2011 <[email protected]>:
> Hi all. it is possible declare a datasource with resources.xml into
> META-INF/resoures.xml for get the entity and the persistence all inside a
> ejb.jar   ???????
>
> It work ??
> So i not have to declare the datasource int oweb application .
>
> Nexdt the web application call the ejb deployed int othe ejb.jar .
>
> or i have to desclare it int oejb-jar.xml with :
>
> <data-source>
>      <name>java:module/ExampleDS</name>
>      <class-name>org.apache.derby.jdbc.ClientDataSource</class-name>
>      <server-name>localhost</server-name>
>      <port-number>1527</port-number>
>      <database-name>exampleDB</database-name>
>      <user>examples</user>
>      <password>examples</password>
>      <property>
>        <name>create</name>
>        <value>true</value>
>      </property>
>      <property>
>        <name>weblogic.TestTableName</name>
>        <value>SQL SELECT 1 FROM SYS.SYSTABLES</value>
>      </property>
>    </data-source>
>
> a example with all packaged int ejb.jar? (both datasource daeclaration and
> persistence.xml that references it?
>
>
>
>
> --
> View this message in context: 
> http://tomee-openejb.979440.n4.nabble.com/declare-datasource-int-omodule-ejb-tp4671504.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to