Hi you can delcare a persistence-unit (jpa one) in a standard persistence.xml called "cmp". And here you can define a datasource
Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2014-12-03 21:07 GMT+01:00 vidaniello <vidanie...@gmail.com>: > The question is simple, in a Content Managed Persistence, 2.1, tomee when > configure the default PersistenceUnit (cmp), use the first datasouce > declared in tomee.xml file. > > How can i choiche my prefered datasouce?? > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/CMP2-1-select-of-the-DataSource-tp4673120.html > Sent from the TomEE Users mailing list archive at Nabble.com.