I am writing camel application witch uses Content Based Router EIP.

This aplication routes the message from source Queue, and based on message
body's xml field forwards message to another Queue.

I'd like that my router be as transperent as possible. So I'd like that
camel do not change message context.
So source's and destination's message fields:

MsgType, MsgId, Expiry, Feedback, Encoding, ReplyToQ....                       
PutApplType, PutApplName, PutDate, PutTime....

...expected to be the same..

I have tried setting "forceSendOriginalMessage=true"
But it seem's it doesn't help much... I'am getting changed MsgId,
PutApplName, PutTime fields changed by ?Camel? or ibm.wmq.


My configuration: (I am using mixed spring and Java DSL)

<..>
from(resolvedQueue).to("direct:routeEnd");
<..>


<route errorHandlerRef="deadLetterErrorHandler" streamCache="true">
            
            <from uri="direct:routeEnd"/>
            <to uri="bean:destinationHandler?method=resolveDestination"/>
            <toD
uri="mqT:$simple{bean:mqRouteBuilder.toPrefix}+$simple{header.Destination}+$simple{bean:mqRouteBuilder.toSeparator}+$simple{in.header.mType}+$simple{bean:mqRouteBuilder.toSuffix}?transacted=true&amp;forceSendOriginalMessage=true&amp;preserveMessageQos=true"/>
            <to uri="bean:OptionalHistoryQueueHandler"/>
</route>



Regards
Marius

                      




--
View this message in context: 
http://camel.465427.n5.nabble.com/WMQ-message-context-tp5785336.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to