On 27/02/2008, Kamal <[EMAIL PROTECTED]> wrote:
>
> I wasn't setting the body, I was assuming that it would copy over the body
> from in to out if I don't explicitly set it. I changed the processor as
> follows and it worked
>
>
> public class GroupIdInsertionProcessor implements Processor {
> public void process(Exchange exchange) throws Exception {
> Message inMessage = exchange.getIn();
>
> exchange.getOut().copyFrom(inMessage);
>
>
> exchange.getOut().setHeader("JMSXGroupID",inMessage.getBody());
> }
> }
>
>
> Thank you for the help.
Ah great - thanks! Sorry for things being so confusing :). A Processor
can do anything it likes to the exchange and by default there is no
output defined, unless the Processor creates it etc.
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com