Hi Jean-Pierre,
Have you the same issue if you draw your camel route like this :
<route>
<from uri="activemq:queue:foo"/>
<multicast>
<to uri="activemq:queue:bar1"/>
<to uri="activemq:queue:bar2"/>
</multicast>
</route>
Regards,
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.
>
--
Charles Moulliard
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Twitter : @cmoulliard
Blog : http://cmoulliard.blogspot.com