Hi James,
On 3/20/2018 5:15 PM, James Carman wrote:
Mainly you just need to make sure it uses the same Bus, I believe.
Any pointers on how to do that with CXFNonSpringJaxrsServlet or other
servlet class?
What
OSGi container? Why are you registering the server yourself?
Because I'm not using just one container, rather I am using CXF to
implement a Remote Services distribution provider...able to run on any
framework...and it needs to dynamically register/unregister
servlets...via HttpService.
Thanks,
Scott
CXF has good
support for OSGi already.
On Tue, Mar 20, 2018 at 2:37 PM Scott Lewis <[email protected]> wrote:
Thanks James,
I'm using the OSGi HttpService and registering a
CXFNonSpringJaxrsServlet instance at runtime. I don't quite understand
how to use the JaxrsServerBeanFactory with the HttpService/servlet. By
chance do you have an example of that in Microbule? Is there
another/better CXF servlet class to use with HttpService in OSGi?
I take it from your answer that there is no CXF impl of
javax.ws.rs.Configurable...but just want to make sure.
Thanks again,
Scott
On 3/20/2018 10:52 AM, James Carman wrote:
You can use JaxrsServerBeanFactory in OSGi just fine. With that, you can
add all the providers you want. You can check out Microbule for
inspiration:
https://github.com/Microbule/microbule
On Tue, Mar 20, 2018 at 1:34 PM Scott Lewis <[email protected]>
wrote:
I'm programmatically using cxf in an osgi environment. I'm using the
servlet class: org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet,
and want to create and an impl of javax.ws.rs.core.Configurable to
register extensions (e.g. json support, etc).
Is there a cxf jaxrs impl of javax.ws.rs.core.Configurable in that I can
create programmatically, and use to register extensions like
ContextResolver, etc?
Thanksinadvance,
Scott