Hi Sergey, this sounds as if the problem of canceling a call is not yet handled in cxf. So I propose we add such a feature. What do you think?
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 -----Ursprüngliche Nachricht----- Von: Sergey Beryozkin [mailto:[email protected]] Gesendet: Freitag, 1. Oktober 2010 13:47 An: [email protected] Betreff: Re: How to cancel a service call Hi 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 instance... cheers, Sergey On Fri, Oct 1, 2010 at 9:48 AM, Schneider Christian < [email protected]> 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 > > > >
