activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From javatestcase <>
Subject Re: JMS Bridge - trying to copy all messages to remote server
Date Tue, 27 Nov 2012 18:55:18 GMT
Thanks for your answer Torsten.

Yes, I have a local consumer, as well as a remote consumer.  It sounds like
this is not the correct design to do what I am trying to do (cause the
message to be consumed both on the local server, and the remote server.)

The strategy I am aiming for is write to the local queue, and consume the
message.  Then copy to the message to the unreliable remote queue (retrying
until success) then consuming the message there as well.

It sounds like I need two separate queue, each with it's own consumer to
make this succeed?  Perhaps setting up a JMS connector with a different
queue name than the local queue will work?

  <jmsQueueConnector outboundQueueConnectionFactory="#remoteFactory">              
      <inboundQueueBridge inboundQueueName = "importRequestQueueREMOTE"
localQueueName = "importRequestQueue"/>
       <outboundQueueBridge outboundQueueName = "importRequestQueueREMOTE"
 localQueueName = "importRequestQueue"/>

Then the local server would have a consumer for importRequestQueue, and the
remote server would only have a consumer for importRequestQueueREMOTE. 

I don't see how I could create the desired behavior with NetworkConnector,
but perhaps with (Static/Dynamic)IncludedDestinations.

I'll go try that out now.  Let me know if there anyone can think a better
way to do this.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message