On Mon, Jun 4, 2012 at 5:31 PM, addict <ersubodhgu...@yahoo.com> 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: 
> http://camel.465427.n5.nabble.com/Problem-with-Java-DSL-filter-tp5713922p5713957.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to