Skip to main content

[jsr339-experts] Re: [jax-rs-spec users] Spec's reference of EJB's @Asynchronous is incorrect

  • From: Bill Burke <bburke@...>
  • To: jsr339-experts@...
  • Subject: [jsr339-experts] Re: [jax-rs-spec users] Spec's reference of EJB's @Asynchronous is incorrect
  • Date: Wed, 30 Jan 2013 14:54:20 -0500



On 1/30/2013 11:32 AM, Marek Potociar wrote:
I'm not sure I follow how the EJB async "fire-and-forget" nature relates to 
HTTP.

Exactly my point, it doesn't relate, so you can't use it with JAX-RS. HTTP expects a response, 'void' + @Asychronous, there is no response for EJB clients.

All we are saying is that the HTTP response is returned on a different thread 
that the one received the request.

Back to our old argument, so I won't go there...

Async EJBs is one way how to delegate request processing to another (managed) 
thread in a JEE container.

Wrong. Async EJBs is so that the client execute one or more tasks in the background. It has nothing to do with managed threads in the Java EE container other than a possible implementation detail.



--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


[jsr339-experts] Spec's reference of EJB's @Asynchronous is incorrect

Bill Burke 01/30/2013

[jsr339-experts] Re: [jax-rs-spec users] Spec's reference of EJB's @Asynchronous is incorrect

Marek Potociar 01/30/2013

[jsr339-experts] Re: [jax-rs-spec users] Spec's reference of EJB's @Asynchronous is incorrect

Bill Burke 01/30/2013

[jsr339-experts] Re: [jax-rs-spec users] Spec's reference of EJB's @Asynchronous is incorrect

Jan Algermissen 01/30/2013

[jsr339-experts] Re: [jax-rs-spec users] Re: Spec's reference of EJB's @Asynchronous is incorrect

Santiago Pericas-Geertsen 01/31/2013

[jsr339-experts] Re: [jax-rs-spec users] Re: Spec's reference of EJB's @Asynchronous is incorrect

Marek Potociar 01/30/2013
 
 
Close
loading
Please Confirm
Close