You can set this as exchange property or message header befor you split the
message. Than you have access to this information in your custom splitter...

Best,
Christian

Sent from a mobile device
Am 20.08.2012 16:58 schrieb "Murari Raghavan" <[email protected]>:

> Hello:
>
> Is there a way to pass arguments to a custom splitter?
>
> For eg - Route Builder calls a custom splitter -
> DDSResponseSplitService.splitStatusResponse()
>
> from(routesprops.getString(Constants.INBOUND))
>     .split().method(DDSResponseSplitService.class, "splitStatusResponse")
>     .process(new Processor() {
>               public void process(Exchange exchange) throws Exception {
> ....
>
> If the splitStatusResponse method accepts a property string xslfilepath,
> how
> can I pass this argument in the call to the splitter method -
> .split().method(DDSResponseSplitService.class, "splitStatusResponse")?
>
> public List<String> splitStatusResponse(String ddsresponse, String
> xslfilepath) throws Exception {
>
> }
>
> Thanks,
> Murari
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Passing-arguments-to-a-customer-splitter-tp5717719.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to