I am trying to persist a simple entity but it is not persisted to database without any error. I am using glassfish 3.1.2, hibernate 4.1.3.Final, transaction scoped/container managed entitymanager. jta transactions is configured in persistence.xml and jta datasource is set correctly. It is a stateless session bean with default transaction level(REQUIRED). In the console, I am seeing "Skipping JTA sync registration due to auto join checking" message several times from Hibernate's TransactionCoordinatorImp. I could find a manually inserted entity using entitymanager.find. But could not persist or merge. Any idea on what could be the problem?
Update:It seems that problem is not related to "Skipping JTA sync registration due to auto join checking" message. If I set transaction isolation level to REQUIRES_NEW new entity is added, but if I set isolation level to REQUIRED it is not persisted. This method was the first one that receives the jax-rs web service call. Why do I need REQUIRES_NEW isolation level?