Is it possible to supply custom parameters to a bean used in several routes?
For example something like:

<route id="testRoute1">
   <from uri="direct:start1"/>
   <to uri="bean:mybean?method=process&myarg=route1/>
</route>

<route id="testRoute2">
   <from uri="direct:start2"/>
   <to uri="bean:mybean?method=process&myarg=route2/>
</route>

I want to use the same (singleton) bean in both cases, and invoke the same
method with a String 'myarg' parameter.
Any suggestions?
Thanks

Reply via email to