Blueprints never use the global bus.  They’ll always create a bus per bundle.   
Well, normally.

The bus’s are exposed as OSGi services so technically you could create a 
reference to a bus from another bundle and use the other bus, but that’s 
certainly not a normal thing to do.

Dan


> On Nov 13, 2014, at 10:36 AM, garethahealy <[email protected]> wrote:
> 
> I am just trying to understand the CXF Bus. So just have a quick question.
> 
> I have 2 bundles within karaf. Both expose CXF endpoints. I want to add an
> interceptor onto the bus, so that all endpoints use it.
> 
> Should the bus be defined in both blueprints xml (as per below)? or just in
> one place, which means it acts as a global bus? If its the global bus
> option, is that how the bus works by default?
> 
> Hope that makes sense. 
> 
> &lt;cxfcore:bus&gt;
>        &lt;cxfcore:inInterceptors&gt;
>               &lt;ref component-id=&quot;wss4jInInterceptor&quot; /&gt;
>               &lt;/cxfcore:inInterceptors&gt;
>               &lt;cxfcore:properties&gt;
>                       &lt;entry key=&quot;schema-validation-enabled&quot;
> value=&quot;${schema.validation.enabled}&quot; /&gt;
>                       &lt;entry key=&quot;loggingFeatureEnabled&quot;
> value=&quot;${logging.isCxfDebug}&quot; /&gt;
>               &lt;/cxfcore:properties&gt;
>    &lt;/cxfcore:bus&gt;
> 
> 
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/CXF-Bus-within-Karaf-tp5751093.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to