|
Hi
David
You might want to
change your application to create a file on disk in which it stores it PID
perhaps.
And when try
running the app again check if this PID file exists and handle
accordingly.
Another option is
to just create a Socket on a particular port after running the application and
try creatiing a socket
on same port just
before running the application too.
So the second
time u try running the app the check #1 would fail stating that a copy of this
application
is already
running.
The point is that
only IPC available here in Java is sockets else with Semaphores we can
easily achieve
this on Unix executables.
--Shankar
To change your membership options, refer to: http://www.sys-con.com/java/list.cfm |
- [jdjlist] re-running a running class David Treves
- [jdjlist] RE: re-running a running class H Shankaranarayanan
- [jdjlist] RE: re-running a running class Madhav Vodnala
- [jdjlist] RE: re-running a running class H Shankaranarayanan
- [jdjlist] RE: re-running a running cl... David Treves
- [jdjlist] RE: re-running a running class H Shankaranarayanan
