Hi,
On 11/11/2019 2:25 PM, Christian Schneider wrote:
Karaf has no direct dependency to CXF. So there is no special handling.
CXF has some implicit rules about bus creation though. As far as I
recall it creates a single bus if you do not specifically set a bus by
hand,
The confusing thing: I have code that creates multiple CXF
busses...that works fine when run in equinox (not all of Karaf) [1].
But it doesn't work the same way in Karaf 4.2.6. I got the code from
JB's question about creating multiple servlets in CXF (on cxf list) a
few weeks ago.
Scott
[1]
https://github.com/ECF/JaxRSProviders/blob/master/bundles/org.eclipse.ecf.provider.cxf.server/src/org/eclipse/ecf/provider/cxf/server/CXFJaxRSServerContainer.java#L42
I propose to ask this on the CXF list.
Christian
Am Mi., 6. Nov. 2019 um 03:08 Uhr schrieb Scott Lewis
<[email protected] <mailto:[email protected]>>:
I have some code running in a non-Karaf OSGi framework (e.g. equinox
framework with bundles) that creates and uses multiple CXF Bus
instances...in order to register multiple
CXFNonSpringJaxrsServlets that
are isolated from one another.
When run in Karaf with CXF 3.3.4, however, this code does not work
the
same...and I suspect it has something to do with how busses are
created
and used in Karaf. I noticed there are a few Karaf commands (e.g.
cxf:list-busses) but I don't see from the documentation how cxf
busses
are created/added at runtime.
Any insights about what is different about CXF in Karaf as opposed to
plain 'ol OSGi framework? Any docs on using/configuring/extending
CXF
in Karaf specifically?
Thanksinadvance,
Scott
--
--
Christian Schneider
http://www.liquid-reality.de
Computer Scientist
http://www.adobe.com