How to configure an EAP 6.3 application to write messages to A-MQ 6.1.0 (activemq) when using the resource adapter (RAR)

Solution Unverified - Updated -

Issue

I have integrated JBOSS EAP 6.3 with A-MQ and also disabled HornetQ. How do I send messages to A-MQ from within EAP?

Here is my resource adapter configuration:

<resource-adapters>
   <resource-adapter id="activemq-rar.rar">
      <archive>activemq-rar.rar</archive>
      <transaction-support>XATransaction</transaction-support>
      <config-property name="UserName">admin</config-property>
      <config-property name="Password">admin</config-property>
      <config-property name="ServerUrl">tcp://127.0.0.1:61616</config-property>
      <connection-definitions>
         <connection-definition class-name="org.apache.activemq.ra.ActiveMQManagedConnectionFactory" jndi-name="java:/ConnectionFactory" enabled="true" use-java-context="true" pool-name="ActiveMQConnectionFactoryPool" use-ccm="true">
         <xa-pool>
            <min-pool-size>1</min-pool-size>
            <max-pool-size>10</max-pool-size>
         </xa-pool>
         </connection-definition>
         <connection-definition class-name="org.apache.activemq.ra.ActiveMQManagedConnectionFactory" jndi-name="java:/JmsXA" enabled="true" use-java-context="true" pool-name="ActiveMQConnectionFactoryPoolXA" use-ccm="true">
         <xa-pool>
            <min-pool-size>1</min-pool-size>
            <max-pool-size>10</max-pool-size>
         </xa-pool>
      </connection-definition>
   </connection-definitions>
   <admin-objects>
   ...
   </admin-objects>
   </resource-adapter>
</resource-adapters>
  • We are looking to properly integrate our ActiveMQ 5.9 setup with JBoss EAP (with JTA as the main reason). While this is pretty easy to do in itself, how can we set it up in a more generic way that doesn't involve re-editing the ra.xml file (inside the resource adapter) file for every other JBoss EAP instance?
    This relates to both the connection string and the used topics/queues.
    Some kind of Java system property? Our JBoss EAP instances are currently rolled out using Puppet in a very generic way.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.3.0
  • Red Hat JBoss A-MQ (ActiveMQ) 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.