camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GibKing <>
Subject Re: Recieving BlobMessages routed with Camel
Date Thu, 06 May 2010 16:45:02 GMT

Hi Claus,
this actually works only with a single route.

    <from uri="activemq:filequeue?mapJmsMessage=false">
    <to uri="bean:filehandler">

public class FileHandler{
public void onMessage(Exchange exchange){
  exchange.getIn().getBody().getClass() == ActiveMQBlobMessage

but with this routing(tested on single broker and network of 2 brokers):

    <from uri="activemq:filequeue?mapJmsMessage=false">
    <to uri="activemq:filequeue2?mapJmsMessage=false">
    <from uri="activemq:filequeue2?mapJmsMessage=false">
    <to uri="bean:filehandler">

The exchange.getBody().getClass() returns ActiveMQMessage

i don't understand this behaviour. Why does the actual class get lost?

View this message in context:
Sent from the Camel - Users (activemq) mailing list archive at

View raw message