1 Reply Latest reply on Jul 10, 2009 1:03 PM by nicolas r. fauceglia

    4.0.4.GA: Setting TransactionStrategy and TransactionLookupM

    guidoscalise Newbie

      Hi!
      I'm using JBoss AS 4.0.4.GA with Hibernate 3.2.0 CR2 and I'm unable to set the TransactionStrategy from jboss-service.xml.

      The error is:
      org.jboss.deployment.DeploymentException: No Attribute found with name: TransactionStrategy

      My jboss-service.xml is:

      <?xml version="1.0" encoding="UTF-8"?>
      <server>
       <mbean code="org.jboss.hibernate.jmx.Hibernate"
       name="jboss.erp:name=ErpSessionFactory">
       <attribute name="DatasourceName">java:/DefaultDS</attribute>
       <attribute name="Dialect">
       org.hibernate.dialect.PostgreSQLDialect
       </attribute>
       <attribute name="SessionFactoryName">
       java:/hibernate/ErpSessionFactory
       </attribute>
       <attribute name="TransactionStrategy">
       org.hibernate.transaction.CMTTransactionFactory</attribute>
       <attribute name="TransactionManagerLookupStrategy">
       org.hibernate.transaction.JBossTransactionManagerLookup</attribute>
       <!-- <attribute name="Hbm2ddlAuto">create-drop</attribute> -->
       <attribute name="ShowSqlEnabled">true</attribute>
       </mbean>
      </server>
      


      Reading the JBoss source code it seems that the MBean doesn't have the TransactionStrategy field (but it later checks if it was configured or not). What should I do. I've been reading docs for the last 4 hours without success.

      Kind Regards,
      Guido