users@jax-rs-spec.java.net

[jax-rs-spec users] Asynchronous EJBs

From: Arun Gupta <arun.p.gupta_at_oracle.com>
Date: Wed, 27 Feb 2013 16:13:43 -0500

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. Ejb.bo "

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 ?

Arun

-- 
http://twitter.com/arungupta
http://blogs.oracle.com/arungupta