You would need to use java code where you can dynamic set the token
and return the tokenizer
.split().method(MyBean.class, "myMethod")
And then implement the method
public static Expression myMethod(Exchange exchange) {
...
TokenizeLanguage tok = new TokenizeLanguage();
tok.setXml(true);
tok.setIncludeTokens(true);
tok.setGroup(100);
tok.setToken(Here is my string as the token I wanna use);
return tok.createExpression(exchange);
}
On Wed, Oct 23, 2013 at 3:32 PM, dkum003 <[email protected]> wrote:
> Hi,
>
> I want to give the dynamic value to the tokenizeXML.
>
> My code snippet is below:
>
> .split()
> .tokenizeXML(tokenType, 100)
> .streaming()
>
> Here my requirement to change the value of tokenType for every run.
>
> Thanks & Regards,
> Dhananjay Kumar
> Amadeus Lab
> SSE
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/how-to-give-the-dynamic-value-to-the-tokenizeXML-tp5742075.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen