I declare a resource in /tomee.xml/:


It runs perfectly using this /persistence.xml/.



I perfectly know this is not the recommended way ti do things, but -for
testing purpose- now I no longer want the container to handle the DataSource
for me, so i changed my /persistence.xml/ file to:



The problem is that the new /persistence.xml/ is ignored: the connection
pool parameters are taken from the /tomee.xml/ (verified in MySQL).

Here's my DAO code:



*
The new configuration works (calling creer() actually inserts the row) but
how to let /Tomee/ take into account my customized /persistence/.xml and not
default to the resource settings in /tomee.xml/ ?*



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/Using-DataSource-outside-the-container-tp4677274.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to