3 Replies Latest reply on Apr 30, 2011 4:18 PM by henk53

    HornetQ XA Recovery configuration in JBoss AS 6

    r.reimann

      Are there any current informations and/or examples on how to configure XA recovery for HornetQ inside JBoss AS 6?


      The HornetQ documentation (http://hornetq.sourceforge.net/docs/hornetq-2.1.2.Final/user-manual/en/html/appserver-integration.html#xa-recovery) linked on JBossApplicationServerOfficialDocumentationPage is not AS6 compatible since it refers to

      conf/jbossts-properties.xml which doesn't exist in JBoss AS 6.0.0.Final.


      Since the issue https://issues.jboss.org/browse/JBAS-8105 "Integrate HornetQ XA Recovery into jbossts out of the box." is still unresolved i assume that manual XA configuration is still required.

       

      To clarify my question - what i would like to know is how to perform the folowing configuration steps described in the HornetQ documentation for AS5...

       

      The following property must be added to the jta section of conf/jbossts-properties.xml of JBoss AS profiles:

       

      <properties depends="arjuna" name="jta">

         ...

       

         <property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.HornetQ1"

                      value="org.hornetq.jms.server.recovery.HornetQXAResourceRecovery;[connection configuration]"/>

      </properties>

       

      ... inside the current JBoss AS 6 since the configuration file jbossts-properties.xml mentioned above doesn't exist in AS6.

       

      Any help would be appreciated.

       

      Regards

      Robert

        • 1. Re: HornetQ XA Recovery configuration in JBoss AS 6
          r.reimann

          Can someone verify/confirm that adding the property below to JTAEnvironmentBean inside transaction-jboss-beans.xml in AS6 is the equivalent to the AS5 config above?

           

          <bean class="com.arjuna.ats.jta.common.JTAEnvironmentBean"
                  name="JTAEnvironmentBean">
                  ...
          <property name="xaResourceRecoveryClassNames" preinstantiate="false">
              <list elementClass="java.lang.String">
                  <value>org.hornetq.jms.server.recovery.HornetQXAResourceRecovery;org.hornetq.core.remoting.impl.invm.InVMConnectorFactory</value>
              </list>
          </property>
          ...
          </bean>
          
          • 2. HornetQ XA Recovery configuration in JBoss AS 6
            larse

            I'm also trying to enable XA-recovery.

            Was the configuration you suggest above successful?

            • 3. HornetQ XA Recovery configuration in JBoss AS 6
              henk53

              I was looking into this too, but didn't get very far after encountering some ends (like mentioned in the OP). Did you ever got it to work?