Re: only one instance
- From: Thomas Hawtin <usenet@xxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Oct 2005 11:48:23 +0000
Chameleon wrote:
I want only one running instance of my app.
1. sockets 2. locking files (I prefer this)
When I run the 2nd instance of App with a file parameter:
my_app.jar a_file.txt
I want to pass "a_file.txt" to 1st instance for opening and then 2nd instance terminate.
The obvious solution is to use the socket method of running a single instance of the app. The second app then connects to the socket and transfers the filename.
Tom Hawtin -- Unemployed English Java programmer http://jroller.com/page/tackline/ .
- Follow-Ups:
- Re: only one instance
- From: steve
- Re: only one instance
- References:
- only one instance
- From: Chameleon
- only one instance
- Prev by Date: Re: Exception handling
- Next by Date: Re: Exception handling
- Previous by thread: only one instance
- Next by thread: Re: only one instance
- Index(es):