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. > > <cxfcore:bus> > <cxfcore:inInterceptors> > <ref component-id="wss4jInInterceptor" /> > </cxfcore:inInterceptors> > <cxfcore:properties> > <entry key="schema-validation-enabled" > value="${schema.validation.enabled}" /> > <entry key="loggingFeatureEnabled" > value="${logging.isCxfDebug}" /> > </cxfcore:properties> > </cxfcore:bus> > > > > -- > 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
