camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xenofon Papadopoulos <xpa...@gmail.com>
Subject Supply custom parameters to bean
Date Fri, 25 Nov 2011 17:35:01 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message