Hi

When you send Java objects over ActiveMQ / JMS - then you must make
sure your have the classes on both sides. Eg do you have the classes /
JARs on the classpath for the other objects you send over?

Also its maybe not the best idea to send java objects over JMS as you
now have a very tight coupling.

On Thu, Feb 6, 2014 at 9:15 AM, dbenitez <dbenite...@live.com> wrote:
> Hello to all,
>
> I'm having problems with a camel Route in an important international
> project, the matter is I have a camel route configured like this:
>
> <camelContext id="comunicationsCamelContext"
> xmlns="http://camel.apache.org/schema/spring";>
>
>   <route id="receiverFromRoute" autoStartup="true">
>      <from uri="activemq:queue:serviceEvaluationQueue" />
>      <to uri="bean:receiverFromRt?method=receivingFromRt" />
>  </route>
>
> </camelContext>
>
> And the receiver is like this:
>
> if(exchange.getIn().getBody() instanceof BbMasterOrderDTO){
>    bbMasterOrder = (BbMasterOrderDTO) exchange.getIn().getBody();
>
> This is working well if I send messages with objects of the class
> BbMasterOrderDTO inside, but the route is not consuming if I put other kind
> of object inside the message body,
>
> My target is consuming all messages also if arrive an unexpected kind of
> class inside of the message, because if not, I must remove manually the
> messages inside the camel route...
>
> Thanks very much in advance
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Consuming-messages-with-casting-problems-tp5746880.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to