CXFNonSpringJaxrsServlet

2018-07-18 Thread Scott Lewis
I've recently used CXF JaxRS to create an OSGi R7 remote services distribution provider [1][2].    It currently extends the CXFNonSpringJaxrsServlet [3], and creates a new servlet for each exported endpoint. I would prefer not to do this...rather I would like to create a single servlet and

Re: DOSGI default intents?

2018-04-17 Thread Scott Lewis
FYI:   OSGI R7 Remote Services [1] defines 4 new standard intents:  osgi.basic, osgi.async, osgi.private, and osgi.confidential. Scott [1] https://osgi.org/specification/osgi.cmpn/7.0.0/service.remoteservices.html#i1693415 On 4/17/2018 12:03 AM, nino martinez wael wrote: Hi Im wondering

Re: jaxrs question

2018-04-16 Thread Scott Lewis
: Mainly you just need to make sure it uses the same Bus, I believe. What OSGi container? Why are you registering the server yourself? CXF has good support for OSGi already. On Tue, Mar 20, 2018 at 2:37 PM Scott Lewis <sle...@composent.com> wrote: Thanks James, I'm using the OSGi HttpS

Re: jaxrs question

2018-03-20 Thread Scott Lewis
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 <sle...@composent.com> wrote: I'm programmatically using cxf in an osgi environment. I'm using the servlet

Re: jaxrs question

2018-03-20 Thread Scott Lewis
, Mar 20, 2018 at 1:34 PM Scott Lewis <sle...@composent.com> 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 extension

Re: jaxrs question

2018-03-20 Thread Scott Lewis
:37 PM Scott Lewis <sle...@composent.com> 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 e

jaxrs question

2018-03-20 Thread Scott Lewis
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

Re: multiple CXFNonSpringJaxrsServlets

2018-10-21 Thread Scott Lewis
described. Thanksinadvance, Scott Den lør. 20. okt. 2018 kl. 23:32 skrev Scott Lewis : Hi, Using OSGi HttpService, if I register more than one instance of CXFNonSpringJaxrsServlet...i.e. at different aliases...then I get an exception. For example if I have two aliases '/foo' -> instanc

Re: multiple CXFNonSpringJaxrsServlets

2018-10-30 Thread Scott Lewis
around this? Scott  On 10/21/2018 9:53 AM, Scott Lewis wrote: On 10/21/2018 2:38 AM, David Karlsen wrote: If you have separate CxfBus'es per servlet it should work AFAIK. It seems that by default in the superclass org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(ServletConfig

Re: multiple CXFNonSpringJaxrsServlets

2018-10-30 Thread Scott Lewis
Scott Lewis : Separate bus instances are created for the CXFNonSpringServlets init, but what apparently blows up is the create/use/start of more than one org.apache.cxf.endpoint.ServerImpl instance at: at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123). Any insights on how to avoid

multiple CXFNonSpringJaxrsServlets

2018-10-20 Thread Scott Lewis
Hi, Using OSGi HttpService, if I register more than one instance of CXFNonSpringJaxrsServlet...i.e. at different aliases...then I get an exception.  For example if I have two aliases '/foo' -> instance 1 of CXFNonSpringJaxrsServlet '/bar' -> instance 2 of CXFNonSpringJaxrsServlet on the

JaxRS Remote Services using CXF 3.3

2019-03-03 Thread Scott Lewis
Hi Folks, There's a new version of the ECF JaxRS Distribution Provider [1].   This provider implements OSGi R7 Remote Services [2] via the JaxRS support in Apache CXF 3.3  or Jersey 2.28. In practice, this means that any JaxRS-annotated service can be exported as a Remote Service in any

Re: Isolating multiple CXFNonSpringServlet

2019-11-04 Thread Scott Lewis
Howdy, I'm extending this class: org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet extends CXFNonSpringServlet. I would like to be able to do a similar thing to what was done by JB with CXFNonSpringServlet but rather by extending CXFNonSpringJaxrsServlet. Currently, as shown here [1],

CXF and Bndtools

2019-11-05 Thread Scott Lewis
I'm trying to use CXF with Bndtools 4.3.   Bndtools has a launcher that by default sets the start level of all bundles to the same value. When I use this launcher to start an app that uses CXF I get ClassNotFoundExceptions such as these: Exception in thread

Re: Isolating multiple CXFNonSpringServlet

2019-11-06 Thread Scott Lewis
Hi JB, On 11/5/2019 11:24 PM, Jean-Baptiste Onofré wrote: Hi, Do you really ned the JAXRS servlet ? Starting from CXF NonSpring Servlet, you can mimic the JAXRS servlet. I know.   In fact I'm already doing that, but it's a pain to have that extra code in my codebase that I'm not at all

Re: CXF and Bndtools

2019-11-06 Thread Scott Lewis
On 11/5/2019 11:23 PM, Jean-Baptiste Onofré wrote: Hi Scott, Do you have cxf-jaxrs bundle installed and corresponding packages imported ? Yes.  Should have said that. Thanks, Scott

Re: Isolating multiple CXFNonSpringServlet

2019-12-07 Thread Scott Lewis
if there are any issues with it. Colm. On Wed, Nov 6, 2019 at 7:18 PM Scott Lewis wrote: Hi JB, On 11/5/2019 11:24 PM, Jean-Baptiste Onofré wrote: Hi, Do you really ned the JAXRS servlet ? Starting from CXF NonSpring Servlet, you can mimic the JAXRS servlet. I know. In fact I'm already doing