File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes How to avoid web start application relaunch ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "How to avoid web start application relaunch ?" Watch "How to avoid web start application relaunch ?" New topic
Author

How to avoid web start application relaunch ?

Igor Merabishvili
Greenhorn

Joined: Apr 17, 2008
Posts: 3
I am trying to start web start application locally by means of javaws.exe. But even starting local jnlp file javaws always start the new VM. How to avoid it?
Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
I am not sure if this is what you really want (you gave too little information), but javax.jnlp.SingleInstanceService and javax.jnlp.SingleInstanceListener might be what you need. Make your main application class implement this interface, and then whenever a new instance of this app is to be started, and there is a running instance already, the running instance's callback method will be invoked.
 
GeeCON Prague 2014
 
subject: How to avoid web start application relaunch ?