Hi everybody,

I'm facing  some strange behavior when connecting to multiple queues in one 
camel context. 
The routes are looking as followed (included in one RouteBuilder): 
  
  from(wmq:queue:queue1)
    .id("mq-out").routeId("mq-out")
    .convertBodyTo(String.class)
    .log("Received msg from MQ: ${body}")
    .to("file:gs/mq/out")
  ;

  from("activemq:topc:GS.MQ.IN")
    .id("mq-in").routeId("mq-in")
    .convertBodyTo(String.class)
    .log("Sending msg to MQ: ${body}")
    .to(wmq:queue:queue2)
  ;

In case I send a couple of message to the destination queue (queue2), they will 
not appear there.
After I put a message into queue1, all messages also appear in queue2.

One solution would be to put every Route into its own CamelContext, but I think 
this should not be the way.

Any suggestion how to solve this problem is very appreciated.

I'm facing this problem with camel-wmq 2.19.0-SNAPSHOT running together with 
apache-servicemix 7.0.1 and apache-camel-2.16.5

Best regards,
Jörg

Reply via email to