This could possible if you use the Camel Container SPI interface.
package org.apache.camel.spi;
/**
* The <code>Container</code> interface defines an object that can be used
* to customize all Camel CONTEXTS created.
* <p/>
* A container can be used to globally intercept and customize Camel
CONTEXTS,
* by registering a <code>LifecycleStrategy</code>, a
<code>ProcessorFactory</code>,
* or any other SPI object.
*/
public interface Container {
Here is an OSGI example -->
https://github.com/cmoulliard/fabric8/blob/master/insight/insight-camel/src/main/java/io/fabric8/insight/camel/base/Activator.java
On Wed, May 14, 2014 at 10:21 PM, Ramiro Pugh <[email protected]> wrote:
> Hi, I'm trying to develop an auditor for every context that exist in Jboss
> Fuse.
>
> I read this post
> http://java.dzone.com/articles/measure-elapsed-time-cameland this is
> the best approach to my solution. But I wish to create one
> single bean and make posiible with one single bean intercept all the
> exchanges in all the contexts in Fuse. Is this possible?
>
> Regards
>
> --
> Ramiro Pugh
>
--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.github.io