3 Replies Latest reply on Dec 14, 2010 2:39 AM by Claus Ibsen

    Camel isn't transporting JMS Headers

    nbaliga Newbie

      Hello,

      I am able to successfully use Camel (both in Spring XML and Java DSL) to send JMS messages from one endpoint to multiple/selected JMS endpoints.

       

      I have configured a <jms:consumer> and multiple <jms:provider>s and deployed a Camel SU for the mediation.

       

      For e.g. my route builder dsl looks something like:

       

      from("jbi:endpoint:http://com.poc.fuse.eip.recipientlist/router/camel")

              .multicast().to(

              "jbi:endpoint:http://com.poc.fuse.eip.recipientlist/ProviderService/Bqueue",

              "jbi:endpoint:http://com.poc.fuse.eip.recipientlist/ProviderService/Cqueue"

                        );

       

      However, I'm seeing that the JMS Headers from the consumer endpoint are not being preserved and made available in the provider endpoints.

       

      My understanding was that Camel would copy the headers transparently. Or is that true only when Camel is deployed standalone and is not dealing with JBI endpoints?

       

      Any help is appreciated.