I have a JPA java project with its [persistence.xml].
During running the project, the logger logs the following:
[WARN AbstractEntityManagerImpl:551 -Calling joinTransaction() on a non JTA EntityManager]
Many thanks for your reply, yet please I need more elaboration.
I searched for how to set the JTA properly into my [persistence.xml], yet didn't reach to a solid answer.
Do you recommend a source to read as to know how to set the [persistence.xml] properly?
How does a JTA datasource differ from non jta datasource ?
( Is this related to who will take care of transactions ? - either JTa ( managed env ) or JDBC etc ( Non Managed )
How to define a jta datasource properly ? need full example in [persistence.xml] or link? please?
Also, I am asking about the needed lib files (jars) for creating a java project (with JPA facet) under Eclipse 3.4 using JPA API with Persistence Provider (Hibernate).
I am listing the ones I have by version, and please comment on the list if any is missing or not required?
The type of the transaction (JTA or resource-local) should depend on the type of the data source (JTA or non-JTA), on many application servers. If a JTA datasource is used in this case, then the transaction type should be JTA. If non-jta datasource is used, then you should select to use resource-local as the transaction-type of the persistence unit. However, in some persistence providers, you can use both jta and non-jta datasource within the same persistence unit. In that case the non-jta datasource can be used where JTA is unavailable.
This is an example of using jta-data source in a persistence unit with the jta transaction type:
For the library jar files, it seems that you've listed all of the required files.