On Dec 1, 2011, at 11:07 AM, Claus Ibsen wrote: > Hi > > Seems a bit odd, as using a Processor gives you directly access to the > Exchange, so if you add an header on the Exchange, then it ought to be > there, when the JmsProducer is invoked. > > Could you check whether the exchange has also an OUT message in the processor?
Hi, thanks... I think I understand this more now. It does work, the problem was as I was testing I was calling getOut() to log it for debugging. I didn't realize it would create the message if it was null. If I change to use hasOut() to indicate there is no out message, then its happy and working correctly. The bit I didn't realize was that camel would assume that the IN message is to use the OUT message if the OUT message is null. I knew it had to be something I was doing wrong ;-) Thanks, --jason
