You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "KARR, DAVID (ATTSI)" <dk...@att.com> on 2011/03/10 22:15:57 UTC

Is there a default timeout for JAXRSServerFactoryBean?

I've used JAXRSServerFactoryBean successfully in the past to write unit
tests for CXF controllers.

I'm now running a test that calls a method that reads from a database,
so it takes a few seconds to get its data.  Sometimes I run the test in
the debugger.

What I find is that the server started by JAXRSServerFactoryBean appears
to terminate after a while, outside of my control.  Assuming there's
some sort of timeout in place here, is there some way I can control this
so it only exits at the end of my test?

RE: Is there a default timeout for JAXRSServerFactoryBean?

Posted by "KARR, DAVID (ATTSI)" <dk...@att.com>.
> -----Original Message-----
> From: Glen Mazza [mailto:gmazza@talend.com]
> Sent: Thursday, March 10, 2011 1:31 PM
> To: users@cxf.apache.org
> Subject: Re: Is there a default timeout for JAXRSServerFactoryBean?
> 
> Would this thread answer your question:
> http://cxf.547215.n5.nabble.com/Turn-off-all-timeouts-with-WebClient-
> in-JAX-RS-td3364696.html
> ?

It appears to, yes.  Thanks.

> On 10.03.2011 16:15, KARR, DAVID (ATTSI) wrote:
> > I've used JAXRSServerFactoryBean successfully in the past to write
> unit
> > tests for CXF controllers.
> >
> > I'm now running a test that calls a method that reads from a
> database,
> > so it takes a few seconds to get its data.  Sometimes I run the test
> in
> > the debugger.
> >
> > What I find is that the server started by JAXRSServerFactoryBean
> appears
> > to terminate after a while, outside of my control.  Assuming there's
> > some sort of timeout in place here, is there some way I can control
> this
> > so it only exits at the end of my test?
> 
> 
> --
> Glen Mazza
> Software Engineer, Talend (http://www.talend.com)
> blog: http://www.jroller.com/gmazza
> 


Re: Is there a default timeout for JAXRSServerFactoryBean?

Posted by Glen Mazza <gm...@talend.com>.
Would this thread answer your question:
http://cxf.547215.n5.nabble.com/Turn-off-all-timeouts-with-WebClient-in-JAX-RS-td3364696.html 
?

HTH,
Glen

On 10.03.2011 16:15, KARR, DAVID (ATTSI) wrote:
> I've used JAXRSServerFactoryBean successfully in the past to write unit
> tests for CXF controllers.
>
> I'm now running a test that calls a method that reads from a database,
> so it takes a few seconds to get its data.  Sometimes I run the test in
> the debugger.
>
> What I find is that the server started by JAXRSServerFactoryBean appears
> to terminate after a while, outside of my control.  Assuming there's
> some sort of timeout in place here, is there some way I can control this
> so it only exits at the end of my test?


-- 
Glen Mazza
Software Engineer, Talend (http://www.talend.com)
blog: http://www.jroller.com/gmazza