camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ext2" <x...@tongtech.com>
Subject Re: how to implement the instrumentation of from-endpoint?(Should camel to support the route level interceptor)
Date Fri, 22 Oct 2010 06:02:54 GMT
Thanks a lot. 
It's just what I needed;

---------------------------------------------------------------------------

on 2010/10/22 12:38 Willem Jiang [mailto:willem.jiang@gmail.com] wrote
Re: how to implement the instrumentation of from-endpoint?(Should camel to
support the route level interceptor)

There is an InterceptFrom DSL[1] that can meet you requirement.

[1]http://camel.apache.org/intercept.html#Intercept-InterceptFrom

On 10/22/10 12:01 PM, ext2 wrote:
>
>
> Hi:
> 	Camel support interceptors for processor, but recently I encounter a
> requirement, it ask for a custom instrumentation strategy of from
endpoint;
> for example , we need the statistics of how much times the message is
> successfully processed in a given time, and how much message is failed;
>
> 	I think we could have three choice to achieve such purpose.
> 	1) Do instrument things, in the from-endpoint.
> 		it's bad, because it need to change the code of camel's
> consumer
>
> 	2) Extend a policy processor to wrapper the whole route, and do
> measurement
> 		It seems the solution is too heavy. But the solution does
> works, and now I am using this solution in my work;
>
> 	3) Support a route level interceptor (just like the processor's
> interceptor, but it will wrapper the whole route).
> 	It seems the solution is more lightweight than the policy-processor.
> How about to add such the support in camel?
>
> Thanks any suggestion
> 	
> 	
> 		
>
>
>


-- 
Willem
----------------------------------
Open Source Integration: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: http://twitter.com/willemjiang




Mime
View raw message