2 Replies Latest reply on Oct 23, 2013 10:57 AM by Travis Brown

    HornetQ transaction management in AS7

    Travis Brown Newbie

      What is the expected way to manage HornetQ transactions in AS7? In earlier versions of JBoss, the web-based JMX console made it convenient to list prepared transactions and then roll back or commit one. I do not even see the roll back or commit operations exposed in JMX for domain mode.

        • 1. Re: HornetQ transaction management in AS7
          Jeff Mesnil Master

          you can use AS7 command line interface to manage HornetQ's transactions:

           

          /subsystem=messaging/hornetq-server=default:list-prepared-transactions

          /subsystem=messaging/hornetq-server=default:rollback-prepared-transaction

          ...

          • 2. Re: HornetQ transaction management in AS7
            Travis Brown Newbie

            That gets me a step closer, but I'm having trouble with the syntax:

            [domain@ddcaxpcimjms01:9999 /] /host=master/server=server-jms/subsystem=messaging/hornetq-server=default:rollback-prepared-transaction
            {
                "outcome" => "failed",
                "result" => undefined,
                "failure-description" => "JBAS014746: transaction-as-base-64 may not be null",
                "rolled-back" => true
            }
            
            [domain@ddcaxpcimjms01:9999 /] /host=master/server=server-jms/subsystem=messaging/hornetq-server=default:rollback-prepared-transaction(transaction-as-base-64='AAAAAAAAAAAAAP__CgUXc0vcCVNSGZHwAWVB3gAAAAAAAAAAAAAAAAAAAAAAAP__CgUXc0vcCVNSGZHwAWVB3TEHAgIA')
            Failed to get the list of the operation properties: "JBAS014753: There is no operation rollback-prepared-transaction registered at address [
                ("subsystem" => "messaging"),
                ("hornetq-server" => "default")
            ]"