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.
