camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wing-tung Leung <wingtung.le...@gmail.com>
Subject Re: Global Interceptor for all incoming Messages
Date Thu, 21 Jun 2012 12:33:30 GMT
2012/6/21 sushil_vsk5 <sushil_vsk5@yahoo.co.in>:
> Unfortunately, the interceptFrom() only seems to intercept messages for
> those routes which are defined in the same RouteBuilder class as the
> interceptFrom() itself. Is there a way to intercept messages for all
> incoming messages for all routes that the camel context holds?

We used a custom route policy applied to a list of specific routes,
which runs the same set of checks on those routes, at the start of the
route.

Or something else:

http://java.dzone.com/articles/aspect-oriented-programming-camel


Maybe that could help you?

Tung

Mime
View raw message