activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: JMS Bridge - trying to copy all messages to remote server
Date Wed, 28 Nov 2012 21:41:28 GMT
On Wed, 2012-11-28 at 13:34 -0800, javatestcase wrote: 
> Well, thanks to Torsten, I was able to get onto a path that worked.
> My solution actually ended out being two producers writing the same message
> to two separate queues (lets say queueLocal and queueRemote).  One queue is
> bridged to the remote server, where there is a consumer MBD listening on
> queueRemote.  A local MDB consuming queueLocal.  That way each queue has
> only a single consumer.

You might be able to make things a bit easier on the producer side by
having a little Camel route in the local broker that uses the Camel
multicast to send the message both to the local and remotely bridged
destination, see:


> Both MDB are identical, but listening to different queues.  This creates the
> desired effect of the "same" message being consumer locally then remotely.
> I suspect there is a more elegant solution to this problem, but this works. 
> The biggest downside so far is basically having to different versions of my
> consumer application, so the MDB can be listening on one queue locally, and
> a different one remotely (MDB are not very dynamic).  The solution to that
> might be trying to not use MDB.
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

Tim Bish
Sr Software Engineer | RedHat Inc. | | 
skype: tabish121 | twitter: @tabish121

View raw message