On Wed, Mar 6, 2013 at 11:34 AM, mauro <[email protected]> wrote:

> *whi* into persistence.xml for jpa i have to declare :*in addition to
> jdbc/jeblog I have to declare a *? datasource?*i not undestand whi.but i
> have view into all example that both to be declared.*mauro
>
>
When i started using TomEE+ (1.5.0 and then 1.5.1 SNAPSHOT), I was under
the assumption that it was necessary to declare both jta and non-jta; so, I
defined/specified both in persistence.xml and tomee.xml.

recently (while running/using 1.5.2-SNAPSHOT and/or 1.6.0-SNAPSHOT),
something motivated me to remove non-jta (since I was trying to use a jdbc
cluster); so, i removed non-jta from persistence.xml 'and' tomee.xml, and
my web app has been working as designed...without non-jta defined/specified
in both files! :)

Evidently, you don't really need it. What version of TomEE are you using?
Try to remove non-jta and see if it breaks anything in your app.

Reply via email to