I would assume that when sending a object then AMQ uses a a stream to contain the data. And that stream is possible not re-readable when you send the message to the 2nd destination.
AMQ itself have ways of auto forwarding messages, so you can have AMQ send to bar2, when you send to bar1. I am not sure though, you would possible have to debug to see what goes on. On Thu, Aug 23, 2012 at 7:04 PM, jprio <[email protected]> wrote: > Hello, > I'm using AMQ 5.5.0 and I want to use the following route definition to > route an *ObjectMessage* : > > <route> > <from uri="activemq:queue:foo?jmsMapMessage=false"/> > <to uri="activemq:queue:bar1"/> > <to uri="activemq:queue:bar2"/> > </route> > > My problem is that, when I post an ObjectMessage to foo, the consumer of > bar1 receives an ActivemqObjectMessage whereas the consumer of bar2 receives > an ActivemqMessage (and not an ActivemqObjectMessage). > > > I tried : > > <route> > <from uri="activemq:queue:foo?jmsMapMessage=false"/> > <multicast> > <to uri="activemq:queue:bar1"/> > <to uri="activemq:queue:bar2"/> > </multicast> > </route> > > but then I have an ActivemqMessage in bar1 and in bar2. > > What can I do to receive an ActivemqObjectMessage both in bar1 and in bar2. > > Thanx for your help. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Routing-an-ObjectMessage-in-ActiveMQ-tp5717965.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
