Hi Sean,

If your goal is to process a request in a separate thread other than the
handler thread then (assuming you are using a JAX-RS 2.0 implementation)
the AsyncResponse API is probably the safest way of achieving that.

Have a look at: https://jersey.java.net/documentation/latest/async.html

HTH,
Savvas





On 29 October 2015 at 21:22, Sean Dawson <seandawson2...@gmail.com> wrote:

>
> Hello,
>
> A general question if anyone here knows off-hand or could point me to an
> answer.  Perhaps it depends on the http client or server or whatever but....
>
> If I start a new Java thread in server code that handles a RestEasy call,
> does that new thread execute fully even if the original call has
> ended/returned?  Or does it get canceled/interrupted/etc?
>
> Thank you.
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>
>
------------------------------------------------------------------------------
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to