Re: Payload Gets Nulled Out

2009-04-23 Thread Claus Ibsen
Hi I created a ticket for this issue https://issues.apache.org/activemq/browse/CAMEL-1563 On Sun, Apr 19, 2009 at 8:53 PM, Roman Kalukiewicz wrote: > 2009/4/18 Claus Ibsen : >> We could add boolean hasOut() as a method on the Exchange. >> Then you can test whether an OUT has been set or not. >

Re: Payload Gets Nulled Out

2009-04-19 Thread Claus Ibsen
On Sun, Apr 19, 2009 at 8:53 PM, Roman Kalukiewicz wrote: > 2009/4/18 Claus Ibsen : >> We could add boolean hasOut() as a method on the Exchange. >> Then you can test whether an OUT has been set or not. >> >> even though getOut(false) does exactly that. Returning null if no OUT exists. > > This is

Re: Payload Gets Nulled Out

2009-04-19 Thread Roman Kalukiewicz
2009/4/18 Claus Ibsen : > We could add boolean hasOut() as a method on the Exchange. > Then you can test whether an OUT has been set or not. > > even though getOut(false) does exactly that. Returning null if no OUT exists. This is not my point, that there is no clear way of verifying if there is o

Re: Payload Gets Nulled Out

2009-04-18 Thread Claus Ibsen
thod would return null. I finally narrowed it down to the >>>> exchange.getOut().setHeader() method, which I have listed below. If I >>>> comment out that line, the next processor can get the inbound body. Why >>>> would setting a header in the outbound me

Re: Payload Gets Nulled Out

2009-04-18 Thread Roman Kalukiewicz
ocessor can get the inbound body. Why >>> would setting a header in the outbound message affect the inbound message? >>> Am I doing something wrong? >>> >>> ... >>> process(new Processor() { >>>      public void process(Exchange exchange) throws Exception { >>>  

Re: Payload Gets Nulled Out

2009-04-17 Thread Claus Ibsen
t;      public void process(Exchange exchange) throws Exception { >>           ... >>           exchange.getOut().setHeader("foo", "bar"); >>           ... >>      } >>   }).to("seda:next"); >> >> Thanks, >> Joe >> >

Re: Payload Gets Nulled Out

2009-04-17 Thread Willem Jiang
nge) throws Exception { > ... > exchange.getOut().setHeader("foo", "bar"); > ... > } > }).to("seda:next"); > > Thanks, > Joe > > -- > View this message in context: > http://www.nabble.com/Payload-Gets-Nulled-Out-tp23105477p23105477.html > Sent from the Camel - Users (activemq) mailing list archive at Nabble.com. > >

Payload Gets Nulled Out

2009-04-17 Thread Joe Fernandez
void process(Exchange exchange) throws Exception { ... exchange.getOut().setHeader("foo", "bar"); ... } }).to("seda:next"); Thanks, Joe -- View this message in context: http://www.nabble.com/Payload-Gets-