Hi This is not supported; and its not easy doable as its an API breaking to pass in any route information as a new parameter to the interface(s).
You can create a generic filter and setup a number of filters with the route id configured. <bean id="filterA" class="com.MyFiler"> <property name="routeId" value="routeA"/> </bean> <bean id="filterB" class="com.MyFiler"> <property name="routeId" value="routeB"/> </bean> On Wed, Dec 5, 2012 at 8:42 AM, helmut.at.work <helmut.at.w...@gmail.com> wrote: > Please excuse my poor description of the problem. > Second try: > In my application I would like to implement a filter for a file consumer, > like that: > > I plan to code a general filter for all/some of my routes. > In the filter method I do in the first run something like this: > > No problem so far. > But now comes the point where I stuck. > The filter should be quite dynamic and the list of file numbers depends of > the route where the the consumer belongs to. Example: > > I can't find a correlation to the camel route at this point. > I hope my problem is now a bit better explained. > I also tried similar with the GenericFileProcessStrategy and > PollingConsumerPollStrategy, but can't find a connection to the route. > > Regards Helmut > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-get-RouteId-in-a-GenericFileFilter-tp5723631p5723643.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen