You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by mlb1141 <my...@sbcglobal.net> on 2015/06/30 23:55:58 UTC

Preferred Way to define datasource to be used by JPA Tomee 2.0

As a newbie to Tomee, I was trying to research how to create a datasource in
which can be injected into an ejb as a @persistencecontext.  It is sometimes
hard to figure out what solutions are obsolete and do not really work any
more; but I found suggestions using server.xml (definitely obsolete; except
maybe with globalNamingResources) context.xml, tomee.xml, resources.xml,
openejb.xml.  I can find little to tell me why I would pick one of these
over another.  I am leaning toward creating a resource definition in
META-INF/context.xml but I am not sure why.  If it makes a difference, I
will be using container managed beans using JPA and a sql server
XAdatasource.  Thanks for any help you can provide.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Preferred-Way-to-define-datasource-to-be-used-by-JPA-Tomee-2-0-tp4675422.html
Sent from the TomEE Users mailing list archive at Nabble.com.