Re: Isolating multiple CXFNonSpringServlet

2019-12-09 Thread Colm O hEigeartaigh
I'm not sure, possibly at the end of December or early January. Colm. On Sat, Dec 7, 2019 at 10:03 PM Scott Lewis wrote: > Looks good, thanks. When is 3.3.5 due/expected for release? > > Scott > > On 12/6/2019 2:22 AM, Colm O hEigeartaigh wrote: > > I've added a new constructor to

Re: Isolating multiple CXFNonSpringServlet

2019-12-07 Thread Scott Lewis
Looks good, thanks.  When is 3.3.5 due/expected for release? Scott On 12/6/2019 2:22 AM, Colm O hEigeartaigh wrote: I've added a new constructor to CXFNonSpringJaxrsServlet here for CXF 3.3.5: https://github.com/apache/cxf/commit/be3187595715da0b93d161097ba95b4c700556a5 Let me know if there

Re: Isolating multiple CXFNonSpringServlet

2019-12-06 Thread Jean-Baptiste Onofré
Hi Colm, it looks good to me, thanks ! Regards JB On 06/12/2019 11:22, Colm O hEigeartaigh wrote: > I've added a new constructor to CXFNonSpringJaxrsServlet here for CXF 3.3.5: > > https://github.com/apache/cxf/commit/be3187595715da0b93d161097ba95b4c700556a5 > > Let me know if there are any

Re: Isolating multiple CXFNonSpringServlet

2019-12-06 Thread Colm O hEigeartaigh
I've added a new constructor to CXFNonSpringJaxrsServlet here for CXF 3.3.5: https://github.com/apache/cxf/commit/be3187595715da0b93d161097ba95b4c700556a5 Let me know 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,

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: Isolating multiple CXFNonSpringServlet

2019-11-05 Thread Jean-Baptiste Onofré
Hi, Do you really ned the JAXRS servlet ? Starting from CXF NonSpring Servlet, you can mimic the JAXRS servlet. Anyway, it makes sense to expose a new constructor to simplify the extension. Regards JB On 05/11/2019 00:46, Scott Lewis wrote: > Howdy, > > I'm extending this class: >

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],

Re: Isolating multiple CXFNonSpringServlet

2019-10-15 Thread Jean-Baptiste Onofré
And thanks Carlos for the help as well ;) Regards JB On 15/10/2019 17:04, Jean-Baptiste Onofré wrote: > Hi, > > Thanks Dan, he found a way to fix the issue. > > The servlet constructor has been changed to: > > public MyServlet(MyRestApi restApi, DestinationRegistry > destinationRegistry,

Re: Isolating multiple CXFNonSpringServlet

2019-10-15 Thread Jean-Baptiste Onofré
Hi, Thanks Dan, he found a way to fix the issue. The servlet constructor has been changed to: public MyServlet(MyRestApi restApi, DestinationRegistry destinationRegistry, Bus bus) { super(destinationRegistry, false); this.restApi = restApi; this.setBus(bus); }

Re: Isolating multiple CXFNonSpringServlet

2019-10-15 Thread Jean-Baptiste Onofré
Hi Carlos, thanks, I already create a bus per servlet (it's what I thought it allows isolation), but doesn't seem to work. Let me compare with what we do in JAXRS Whiteboard. Thanks, Regards JB On 15/10/2019 09:24, Carlos Sierra Andrés wrote: > Hi there, > > you can have a look at the aries

Re: Isolating multiple CXFNonSpringServlet

2019-10-15 Thread Carlos Sierra Andrés
Hi there, you can have a look at the aries jax-rs whiteboard, we create one CXFNonSpringServlet per application, and they are all deployed on "/" of their respective ServletContext.

Isolating multiple CXFNonSpringServlet

2019-10-14 Thread Jean-Baptiste Onofré
Hi, I have extended CXFNonSpringServlet two times: public class MyServlet1 extends CXFNonSpringServlet { @Override public void init(ServletConfig config) throws ServletException { super.init(config); JAXRSServerFactoryBean bean = new JAXRSServerFactoryBean();