camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Problem with Java DSL filter
Date Mon, 04 Jun 2012 15:48:19 GMT
On Mon, Jun 4, 2012 at 5:31 PM, addict <> wrote:
> Yes Claus, when the routes execute for the first time tag will be null,
> however any subsequent time tag will be having the string value assigned to
> it (provided header has attribute tag which is having != null value, which
> is the case with us).
> However on debugging i could see on each invocation tag was passed as null
> even though SoP is printing the correct value.

Java is pass by value, in method call parameters.
So you need to store the String in a Object holder of some sort if you
want to be able to refer to it as it changes.
Do some googling to read more about this.

> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message