activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Purcell <>
Subject Need JMS to JMS Bridge Help
Date Thu, 13 Jul 2006 19:19:07 GMT

I'm struggling with getting a JMS bridge configured in ActiveMQ to bridge
between one provider, WebLogic server (WLS), and another, ActiveMQ. I have
the following questions:

    * Has anyone gotten this to work between an ActiveMQ and non-ActiveMQ
    * With which version should I be working with (4.0, 4.0.1, 4.1)?
    * Can you post your activemq.xml config file?
    * I put a message on a queue provided by WLS and I want the a message
listener on the ActiveMQ side to get it. Are each of the following
statements true?
          o I do not define a "remote broker" in ActiveMQ beacause its WLS
of the other side not ActiveMQ.
          o My "outboundQueueConnectionFactory" should reference a
remoteFactory bean that represents the WLS server.
          o My "outboundQueueConnectionFactoryName" should be the JNDI name
of the WLS' server ConnectionFactory.
          o My "localQueueConnectionFactory" should reference a localFactory
bean that represents the ActiveMQ broker that hosts the bridge
          o Since the direction of the communication is out from the WLS
server and into ActiveMQ I need to set up an <inboundQueueBridges> with a
          o On the <inboundQueueBridge> I define an inboundQueueName which
defines the queue name on WLS.
          o On the <inboundQueueBridge> I also define a consumerQueue which
defines the queue on ActiveMQ.
          o My remoteFactory bean definition should include the JNDI
environment properties required to look up the queue in the WLS server.
          o This remoteFactory is the only reference to the WLS server in
the activemq.xml config file.

Below is my config file.  It deploys and says the connector is started but
it does not work.


<!-- START SNIPPET: xbean -->
<beans xmlns="">
  <broker useJmx="true">
      <journaledJDBC journalLogFiles="5" dataDirectory="../activemq-data"/>
       <transportConnector name="default" uri="tcp://localhost:61616"
       <transportConnector name="stomp"   uri="stomp://localhost:61613"/>
      <networkConnector name="default" uri="multicast://default"/>
     <jmsQueueConnector name="JreportRequestBridge-Inbound"
          <inboundQueueBridge inboundQueueName="jms/queue/jreport/request"


  <bean id="remoteFactory"
    <property name="userName" value="user"/>
    <property name="password" value="password"/>
       <property name="java.naming.factory.initial"
       <property name="java.naming.provider.url"

  <bean id="localFactory"
    <property name="brokerURL" value="tcp://localhost:61616" />
  <bean id="localQueue" class="org.apache.activemq.command.ActiveMQQueue">
    <constructor-arg value="dynamic/jms.queue.jreport.requestlll"/>
<!-- END SNIPPET: xbean -->

View this message in context:
Sent from the ActiveMQ - User forum at

View raw message