Hi
You can read about bean parameter binding which is what is in use when
the method is being invoked.
http://camel.apache.org/bean-binding.html
However you may consider having getter/setters on
DDSResponseSplitService and then configure the xslt path on the bean
before its being used by Camel. And then you won't need that 2nd
parameter.
final DDSResponseSplitService service = new DDSResponseSplitService();
service.setXPathPath("myPath");
....
.split().method(service, "splitStatusResponse")
On Mon, Aug 20, 2012 at 4:57 PM, Murari Raghavan
<[email protected]> wrote:
> 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.
--
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen