ActiveMQ
  1. ActiveMQ
  2. AMQ-1240

Active MQ does not correctly bind to the JNDI when deployed as a RAR in JBoss

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 5.4.0
    • Component/s: JCA Container
    • Labels:
      None
    • Environment:

      Red Hat Enterprise Linux 4, 32bit.

      Description

      I am unable to use the broker-config.xml file to configure the data source via a JNDI data source. The data source is configured correctly, and does appear in the JNDI when viewed via the JMX console. I receive the following error.

      ObjectName: jboss.jca:service=RARDeployment,name='activemq-rar-4.1.1.rar'
      State: FAILED
      Reason: javax.resource.spi.ResourceAdapterInternalException: Failed to startup an embedded broker: xbean:broker-config.xml, due to: org.springfra
      mework.beans.factory.BeanCreationException: Error creating bean with name 'activemq-ds' defined in class path resource [broker-config.xml]: Invocat
      ion of init method failed; nested exception is javax.naming.NameNotFoundException: ActiveMQDS not bound
      Depends On Me:
      jboss.jca:service=ManagedConnectionFactory,name=activemq/QueueConnectionFactory
      jboss.jca:service=ManagedConnectionFactory,name=activemq/TopicConnectionFactory

      1. ra.xml
        9 kB
        Todd Nine
      2. ASF.LICENSE.NOT.GRANTED--broker-config.xml
        3 kB
        Todd Nine
      3. ASF.LICENSE.NOT.GRANTED--activemq-jms-ds.xml
        3 kB
        Todd Nine
      4. ASF.LICENSE.NOT.GRANTED--activemq-ds.xml
        1 kB
        Todd Nine
      5. activemq-ds.xml
        1 kB
        Todd Nine

        Activity

        Hide
        Gary Tully added a comment -

        This seems to work ok now: see https://issues.apache.org/activemq/browse/AMQ-2670 for a working example with recovery

        Show
        Gary Tully added a comment - This seems to work ok now: see https://issues.apache.org/activemq/browse/AMQ-2670 for a working example with recovery
        Hide
        Todd Nine added a comment -

        I am using JBoss 4.0.5 GA and build 1.5.0_11-b03

        Show
        Todd Nine added a comment - I am using JBoss 4.0.5 GA and build 1.5.0_11-b03

          People

          • Assignee:
            Unassigned
            Reporter:
            Todd Nine
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development