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: http://camel.apache.org/multicast.html and: http://activemq.apache.org/enterprise-integration-patterns.html > > 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: > http://activemq.2283324.n4.nabble.com/JMS-Bridge-trying-to-copy-all-messages-to-remote-server-tp4659769p4659906.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- Tim Bish Sr Software Engineer | RedHat Inc. tim.b...@redhat.com | www.fusesource.com | www.redhat.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/