Hmm looks fine, can you reproduce the issue with a unit test? Le 4 juin 2013 08:00, "vhubuo" <[email protected]> a écrit :
> tomee.xml > > <?xml version="1.0" encoding="UTF-8"?> > <tomee> > > > > > <Resource id="portal-jta" type="javax.sql.DataSource"> > # configure the pool > DataSourceCreator = tomcat > > # it is a jta datasource > JtaManaged = true > > # tomcat pool configuration > driverClassName = org.postgresql.Driver > url = jdbc:postgresql://192.168.10.161:5432/portal > username = portal > password = azm > validationQuery = SELECT 1 > jmxEnabled = true # specific to tomcat pooling > stringtype = unspecified > </Resource> > <Resource id="db-jta" type="javax.sql.DataSource"> > # configure the pool > DataSourceCreator = tomcat > > # it is a jta datasource > JtaManaged = true > > # tomcat pool configuration > driverClassName = org.postgresql.Driver > url = jdbc:postgresql://192.168.10.161:5432/app > username = app > password = azm > validationQuery = SELECT 1 > jmxEnabled = true # specific to tomcat pooling > stringtype = unspecified > </Resource> > </tomee> > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Eclipse-link-loads-only-first-datasource-from-persistence-xml-tp4663432p4663451.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
