wood burning stoves 2.0*
The moose likes Threads and Synchronization and the fly likes Stopping java thread using kill command line Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic
Author

Stopping java thread using kill command line

tarik elberrak
Greenhorn

Joined: Feb 19, 2006
Posts: 6
Hi all,

I'have run may thread (class implementing Runnable)using a shell script and stored the PID in a file so I can use it to stop the process using the kill command.
my thread open some resources, like an rvd (Tibco RVD), so when killing the process using the kill method, my rvd is still running.
my question is : which Exception must be catched when shutting down a java thread using the kill command line, so I can close my rvd connection int it.

Kinds regards
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18553
    
  40

Please do not crosspost. It wastes people's time and effort.

I'm closing this topic as the other topic has a response.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Stopping java thread using kill command line
 
Similar Threads
Equivalent kill -n for process.destroy()
how to know the killed process?
Stopping java thread using kill command line
how to know the killed process?
Trying to kill all associated threads and processes