[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Artemis 2.4.0 + JBoss 7.2 JMS Bridge


my goal ist to setup a bridge (any bridge really) between a JBoss 7.2
(HornetQ 2.3.0.RC1) and Artemis 2.4.0. Currently I am trying the jms
bridge.  Configuration in JBoss' standalone.xml is

<jms-bridge name="artemis-bridge" module="org.activemq.artemis">
    <connection-factory name="java:/ConnectionFactory"/>
    <destination name="/jms/queue/name"/>
    <connection-factory name="CF"/>
    <destination name="testQueue"/>
      <property key="java.naming.factory.initial" value="org.apache.activemq.artemis.jndi.ActiveMQInitialConnectionFactory"/>
      <property key="java.naming.provider.url" value="tcp://"/>
      <property key="connectionFactory.CF" value="tcp://" />
      <property key="queue.testQueue" value="testQueue" />

It builds on the 'org.activemq.artemis' module, which I built myself.
What artemis jars should really go in the module?
artemis-jms-client-all.jar is not enough.  I have been adding jars
from artemis' lib/ directory and JBoss could not instantiate
ActiveMQInitialConnectionFactory, until I added the jetty jar too.
After that, the stack trace shows me that somehow the initial context
factory from jetty is used, which understandably is not able to look
up things in JBoss' JNDI tree.

Any hints on how to get this to work are indeed much appreciated.
I've been trying roundabout a day now.