tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Remote Asynchronous EJB Method call followed quickly by client exit
Date Sat, 17 May 2014 13:12:45 GMT
Hi

reworked a bit pool config (mainly to allow it to be configurable by
context) but can also solve your issue
https://issues.apache.org/jira/browse/TOMEE-1212

please test tomorrow snapshot (or build openejb-client from sources if
not an issue for you)


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-05-17 8:15 GMT+02:00 Romain Manni-Bucau <rmannibucau@gmail.com>:
> Actually it is desirable. You want the client to be async as well (server
> async is not mandatory here). If we use daemon threads
>
> Daemon threads is what we do.
>
> Le 17 mai 2014 01:00, "Andy Gumbrecht" <agumbrecht@tomitribe.com> a écrit :
>
>> It depends on how you are exiting the client. Make sure you close the
>> context properly and don't just kill the process, it may not have completed
>> the call.
>>
>>
>> http://docs.oracle.com/javase/6/docs/api/javax/naming/InitialContext.html#close()
>>
>> Can you share some code.
>>
>> Andy.
>>
>> On 14/05/2014 23:24, 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 1.6.0.1?
>>>
>>>
>>>
>>> -----
>>> - Tim
>>> --
>>> View this message in context:
>>> http://openejb.979440.n4.nabble.com/Remote-Asynchronous-EJB-Method-call-followed-quickly-by-client-exit-tp4669337.html
>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>>
>>>
>>
>> --
>>   Andy Gumbrecht
>>
>>   http://www.tomitribe.com
>>   agumbrecht@tomitribe.com
>>   https://twitter.com/AndyGeeDe
>>
>>   TomEE treibt Tomitribe! | http://tomee.apache.org
>>
>

Mime
View raw message