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
Usually you just add it in the Blueprint bundle. Something like:
That depends on the use case. You may not even be using Blueprint so that
might not be relevant.
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
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,
I propose to ask this on the CXF list.
Christian
Am Mi., 6. Nov. 2019 um 03:08
Howdy. Not using blueprint. How is bus creation done programmatically?
On 11/11/2019 11:53 AM, Ranx0r0x wrote:
Usually you just add it in the Blueprint bundle. Something like:
That depends on the use case. You may not even be using Blueprint so that
might not be relevant.
--
Sent from: h
---De : Scott Lewis Date
: 12/11/2019 06:47 (GMT+01:00) À : user@karaf.apache.org Objet : Re: question
on cxf bus creation in Karaf Howdy. Not using blueprint. How is bus creation
done programmatically?On 11/11/2019 11:53 AM, Ranx0r0x wrote:> Usually you just
add it in the Blueprint bundle. S
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:
Scott,
That's why I was a bit hesitant to answer the question about how to create a
Bus. While blueprint is a common way to do it, it isn't universal and its
implementation is actually a BlueprintBus which implements the Bus
interface.
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-
Hi,
in Karaf Cave, I created the bus programmatically and injected in the
CXF servlet.
It works fine. You can use the default "global" bus, or create one bus
per servlet, up to you.
Regards
JB
On 12/11/2019 15:56, Ranx0r0x wrote:
> Scott,
>
> That's why I was a bit hesitant to answer the quest
On 11/12/2019 7:05 AM, Jean-Baptiste Onofré wrote:
Hi,
in Karaf Cave, I created the bus programmatically and injected in the
CXF servlet.
Where in the Cave source code is this done? I'm doing a similar thing
with the CXFNonSpringJaxrsServlet, but the strange thing is that it's
not working