0 Replies Latest reply on Sep 1, 2010 2:34 AM by pratap_184

    what is the transaction factory class for jta in hibernate jboss5.1

    pratap_184

      Hello all,

       

      What transaction factory class name will be added in hibernate.cfg.xml file so that it uses the default transaction manager provided by the jboss 5.1 server.

       

      Please help me . I am using hibernate 3.0 and my hibernate.cfg.xml file looks like

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
      <hibernate-configuration>
          <!-- a SessionFactory instance listed as /jndi/name -->
          <session-factory>
              <property name="connection.datasource">java:/jdbc/GEMINI_PRIMARY</property>
      <property name="show_sql">true</property>
      <property name="use_outer_join">true</property>
              <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
      <!-- mapping files -->
              <mapping resource="com/tfsm/oas/data/control/Account.hbm.xml"/>
      <mapping resource="com/tfsm/oas/data/control/AccountModule.hbm.xml"/>
      </session-factory>
      </hibernate-configuration>
      I want to add <property name="transaction.factory_class">? </property> so that all transactions are jta. What is the class name I need to add there.