did you configure the datasources?

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



2013/6/3 vhubuo <[email protected]>

> Hello.
> I'm using apache-tomee-1.6.0-20130603.041221-89-plus.
> Eclipse link loads only first jta-data-source from persistence.xml. And
> uses
> it for all persistence units.
>
> My persistence xml example:
> <persistence-unit name="App-appPU" transaction-type="JTA">
>
> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
>         <jta-data-source>db-jta</jta-data-source>
>         <jar-file>../lib/ejb.jar</jar-file>
>         <properties>
>             <property name="eclipselink.logging.level" value="FINE"/>
>             <property name="eclipselink.logging.parameters" value="true"/>
>             <property name="eclipselink.descriptor.customizer.House"
> value="persistence_objects.address.HouseCustomizer"/>
>         </properties>
>     </persistence-unit>
>      <persistence-unit name="App-portalPU" transaction-type="JTA">
>
> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
>         <jta-data-source>portal-jta</jta-data-source>
>         <jar-file>../lib/ejb.jar</jar-file>
>         <exclude-unlisted-classes>false</exclude-unlisted-classes>
>         <properties>
>             <property name="eclipselink.logging.level" value="FINE"/>
>             <property name="eclipselink.logging.parameters" value="true"/>
>         </properties>
>     </persistence-unit>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Eclipse-link-loads-only-first-datasource-from-persistence-xml-tp4663432.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to