Hi all.
This is probably a trivial question, but since I'm not too experienced
with Java threads I'll ask anyway...
I'm using the latest xfire version and I wrote a client that uploads
(sometimes) quite large files to my web service.
This works all very well and also quite performant. Now I want to
implement a cancel button so the user can choose to cancel the transfer
if it takes to long for whatever reason.
The method call that uploads the file runs in it's own thread like:
submissionThread = new Thread()
public void run() {
serviceInterface.upload(dataSource,target);
}
}.start;
I tried to do a submissionThread.interrupt() but that only is useful for
me when I have the opportunity to actually check the interupt status of
the current thread. Which I don't have while the file is uploading.
Any ideas on how to "kill" the upload?
Thanks in advance.
Cheers,
Markus
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email