Re: [DISCUSS] Global interceptors

2011-07-28 Thread Guillaume Nodet
I found another way which I think is cleaner. I've added a single Container interface with a singleton which is called back whenever a CamelContext is created. The implementation can then add a LifecycleListener or register any other SPI object. See

Re: [DISCUSS] Global interceptors

2011-07-28 Thread Jean-Baptiste Onofré
Hi Guillaume, indeed, it looks cleaner. Let me take a deeper look on the code but it sounds good. Regards JB On 07/28/2011 10:14 AM, Guillaume Nodet wrote: I found another way which I think is cleaner. I've added a single Container interface with a singleton which is called back whenever a

Re: [DISCUSS] Global interceptors

2011-07-28 Thread Christian Schneider
How about offering the camelContext as an OSGi service? This way servicemix can use the whiteboard pattern to watch for camel contexts and register with them. Christian Am 28.07.2011 10:14, schrieb Guillaume Nodet: I found another way which I think is cleaner. I've added a single Container

Re: [DISCUSS] Global interceptors

2011-07-28 Thread Jean-Baptiste Onofré
Hi Christian, It's already the case. CamelContext are exposed as OSGi services. It's used in Camel commands to list it, etc. The whiteboard could work but it depends what we want to achieve. Regards JB On 07/28/2011 10:36 AM, Christian Schneider wrote: How about offering the camelContext as

Re: [DISCUSS] Global interceptors

2011-07-28 Thread Guillaume Nodet
It's already the case and it does not fulfill my need for multiple reasons: * when the service is registered, it's way too late to change anything, I need real low level interception * only contexts created by blueprint or spring are registered, not those create with a java / scala / groovy

Re: [DISCUSS] Global interceptors

2011-07-24 Thread Christian Müller
+1 One of the features we are missing in SMX 4.x... Best, Christian On Fri, Jul 22, 2011 at 7:07 AM, Jean-Baptiste Onofré j...@nanthrax.netwrote: +1 It's a must have for new SMX :) Regards JB On 07/21/2011 11:22 AM, Guillaume Nodet wrote: For ServiceMix, we are in need for having

Re: [DISCUSS] Global interceptors

2011-07-24 Thread Johan Edstrom
+1 On Jul 24, 2011, at 12:01, Christian Müller christian.muel...@gmail.com wrote: +1 One of the features we are missing in SMX 4.x... Best, Christian On Fri, Jul 22, 2011 at 7:07 AM, Jean-Baptiste Onofré j...@nanthrax.netwrote: +1 It's a must have for new SMX :) Regards

[DISCUSS] Global interceptors

2011-07-21 Thread Guillaume Nodet
For ServiceMix, we are in need for having *global* interceptors, i.e. some kind of static list of interceptors and other strategies. The main use case is that users would deploy plain camel routes and ServiceMix would kick in and configure its interceptors but without any need for the user to

Re: [DISCUSS] Global interceptors

2011-07-21 Thread Zbarcea Hadrian
The interceptors story in camel needs revisiting anyway. Hadrian On Jul 21, 2011, at 5:22 AM, Guillaume Nodet wrote: For ServiceMix, we are in need for having *global* interceptors, i.e. some kind of static list of interceptors and other strategies. The main use case is that users would

Re: [DISCUSS] Global interceptors

2011-07-21 Thread Matt Pavlovich
+1 Totally agree. This is a functionality that I've implemented a number of times and is great for creating audit trails, and replay. On Jul 21, 2011, at 4:22 AM, Guillaume Nodet wrote: For ServiceMix, we are in need for having *global* interceptors, i.e. some kind of static list of

Re: [DISCUSS] Global interceptors

2011-07-21 Thread Jean-Baptiste Onofré
+1 It's a must have for new SMX :) Regards JB On 07/21/2011 11:22 AM, Guillaume Nodet wrote: For ServiceMix, we are in need for having *global* interceptors, i.e. some kind of static list of interceptors and other strategies. The main use case is that users would deploy plain camel routes