You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Bernd Wiswedel <be...@gmail.com> on 2009/09/03 17:10:40 UTC
Timeout handling for asynchronous client
What is the designated procedure to do timeout handling in asynchronous
clients? My client uses ClientCallbacks but I'm unsure how to abort the
invocation after a user-specified timeout. Is that to be done in my client
code (e.g. via ClientCallback.cancel(boolean)) or can I set some properties
(which ones?), for instance by putting values into the RequestContext?
Thanks,
Bernd
Re: Timeout handling for asynchronous client
Posted by Daniel Kulp <dk...@apache.org>.
On Thu September 3 2009 11:10:40 am Bernd Wiswedel wrote:
> What is the designated procedure to do timeout handling in asynchronous
> clients? My client uses ClientCallbacks but I'm unsure how to abort the
> invocation after a user-specified timeout. Is that to be done in my client
> code (e.g. via ClientCallback.cancel(boolean)) or can I set some properties
> (which ones?), for instance by putting values into the RequestContext?
>
> Thanks,
> Bernd
If dealing with http, the best bet is to just set the http receive timeout on
the conduit. For JMS, there is JMS configs as well.
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog