tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thiago Veronezi <>
Subject Re: Remote Asynchronous EJB Method call followed quickly by client exit
Date Fri, 16 May 2014 13:21:45 GMT

Async calls return back to the caller immediately. If we expect to get a
result back from an async call, we should use Future to hold it.

Maybe you can create something reproducible by cloning the async-method
example with a remote async call.

On May 15, 2014 8:15 PM, "ymaraner" <> wrote:

> I have a client that makes a call to a remote EJB method and then
> terminates
> within a very short period of time. If the EJB method is synchronous,
> everything works fine. If the EJB is annotated with @Asynchronous, the call
> doesn't seem to be processed on the server unless I introduce a short sleep
> in the client right after the method call.
> That doesn't seem like correct behavior to me. I was under the impression
> that the call would spawn a server-side thread to handle the method and
> then
> return control to the client; so the method would be successfully invoked
> no
> matter what the client did immediately after the call.
> Am I wrong? Or is this a potential bug in the implementation of
> asynchronous
> EJB method invocation in TomEE
> -----
> - Tim
> --
> View this message in context:
> Sent from the OpenEJB User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message