cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <>
Subject Re: How to cancel a service call
Date Fri, 01 Oct 2010 11:46:50 GMT

As far as I recall one only can do it if an underlying Socket instance is
available, so doing socket.close() would interrupt the blocked thread. I do
not remember right now if registering a custom URL handler or connection
factory can do the trick, so that one can get to the low-level Socket

cheers, Sergey

On Fri, Oct 1, 2010 at 9:48 AM, Schneider Christian <> wrote:

> Hi all,
> I have a GUI that calls a service using CXF. The call is done in a
> backgorund thread and the progress is shown using the eclipse Progress
> Monitor. When a service is slow or does not react then the call "hangs".
> This does not block the user as it is a background thread but still he
> should be able to cancel the call.
> So my question is: What is the best practice to cancel a Service call? I
> guess on the eclipse side I have to use a spearate thread to check the
> IProgressMonitor for isCanceled(). But what do I have to do on the cxf side.
> Do I send an interrupt request to the thread?
> Thanks
> Christian
> Christian Schneider
> Informationsverarbeitung
> Business Solutions
> Handel und Dispatching
> Tel : +49-(0)721-63-15482
> EnBW Systeme Infrastruktur Support GmbH
> Sitz der Gesellschaft: Karlsruhe
> Handelsregister: Amtsgericht Mannheim - HRB 108550
> Vorsitzender des Aufsichtsrats: Dr. Bernhard Beck
> Geschäftsführer: Jochen Adenau, Hans-Günther Meier

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