The moose likes JNLP and Web Start and the fly likes Avoid new instancing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "Avoid new instancing" Watch "Avoid new instancing" New topic
Author

Avoid new instancing

Namho Rihm
Greenhorn

Joined: Nov 29, 2002
Posts: 1
Hi.
As I am just starting to use WebSart it might be that my problem has nothing to do with it.
Ayway: If I click on a link to a jnlp-file on a website, is it possible to avoid that a second instance of the application will be launched if another one is already running?
Have a nice day! Namho.
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
sorry to answer that late.
I think you're right - your answer has nothing to do with JavaWebStart. You could implement such a control by focing the user to log on to a server (just like https login). Through this logging mechanism you can restrict that for one login only one client is running.
Another way might be to let the client check whether another client is already running. if this is the case, the second client shuts down automatically (after notifying the user). I don't know how to do this, but it should be possible. on a unix system you could check the running processes.
Chantal
 
 
subject: Avoid new instancing
 
Threads others viewed
Basic locking question
JSP and JavaScript
Question on scripting invalid and el ignored tags
session.invalidate() invalid?
WA #1.....word association
developer file tools