Hi
  Here's my persistence.xml file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
 <persistence-unit name="airportPU" transaction-type="JTA">
       <jta-data-source>
          java:/OracleDS
       </jta-data-source>
       <properties>
          <property name="hibernate.current_session_context_class" value="org.hibernate.context.JTASessionContext" />
         <property name="hibernate.transaction.flush_before_completion" value="true" />
         <property name="hibernate.transaction.auto_close_session" value="true" />
          <property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JTATransactionFactory" />    
          <property name="hibernate.hbm2ddl.auto" value="update" />
          <property name="hibernate.show_sql" value="true" />
          <property name="jboss.entity.manager.jndi.name" value="java:/EntityManager" />      
          </properties>
  </persistence-unit>
</persistence>
As you can see I use JTATransactionFactory. The problem is that there are no changes in db! when I use default TransactionFactory changes are visible. With JTATransactionFactory I have to flush() on entityManager which is not good work around for me. Is there any solution so that changes will be affected with jta?
Regards