[jax-rs-spec users] Re: Asynchronous EJBs

From: Santiago Pericas-Geertsen <>
Date: Wed, 27 Feb 2013 16:47:22 -0500

On Feb 27, 2013, at 4:13 PM, Arun Gupta <> wrote:

> Asynchronous EJBs can have method signature with "void" and "Future" return type. Section 8.3 describes the behavior with "void" return type. Is "Future" return type not permitted ?
> If permitted, how would the response be returned back to the client ?
> EJB spec says
> " When a client invokes an asynchronous method, the container returns control to the client immediately and continues processing the invocation on a separate thread of execution. "
> The code sample indicates only executeLongRunningOp will run in a separate thread and ar.resume in the application thread. How is that expected to work ?
 What lead you to that conclusion? The execution of longRunningOp is completely done in another thread, so the calls to executeLongRunningOp and ar.resume are done on the that same thread.

-- Santiago