Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2670

ClassCast Exception in JBoss when using XA

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.3.0
    • 5.4.0
    • Connector
    • None
    • activemq-rar-5.3.0.rar deployed in jboss-5.1.0-GA

    • Patch Available

    Description

      When deploying the rar under JBoss, the connectionfactory bound in de JNDI tree is always of type 'ActiveMQConnectionFactory'., while it should be ActiveMQXAConnectionFactory (which implements XAConnectionFactory).

      I attached a new class that creates the correct type of factory, and this can be configured in the ra.xml (also attached).

      Attachments

        1. ra.xml
          20 kB
          Edwin van der Elst
        2. ActiveMQXAManagedConnectionFactory.java
          1 kB
          Edwin van der Elst

        Issue Links

          Activity

            People

              gtully Gary Tully
              edwin@finalist.com Edwin van der Elst
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: