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 Track the closing of client application launched through Java Web Start 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 "Track the closing of client application launched through Java Web Start" Watch "Track the closing of client application launched through Java Web Start" New topic
Author

Track the closing of client application launched through Java Web Start

Ram Mohan Alias
Greenhorn

Joined: Feb 07, 2011
Posts: 1
A main class is invoked through a JNLP file using Java Web Start from a client machine. I want to update server DB table based on successful launch and closing of the application in client machine.

The constraint is that I can't modify the application that gets launched(as it is a 3rd party GPL tool).
Another constraint is that the tool does all things inside it's main method, so difficult to write a wrapper application.

Is there any way to track such events(especially closure) using Java Web Start itself ?
sourabh girdhar
Ranch Hand

Joined: Feb 10, 2010
Posts: 71

I have not tried the same but as far I can think,

You can write one new main class write your logic inside it and specify this as new main class in your JNLP.
Form your new main class , you can invoke the original main class. Obviously don't change any dependencies in JNLP, so it can download all jars.

I think that should work. Letus know the outcome.

Cheers


SCJP SCWCD AIX SOA
The significant problems we face cannot be solved by the same level of thinking that created them -- Albert Einstein

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Track the closing of client application launched through Java Web Start
 
Similar Threads
Java InitialContext failure in 1.6
launching application using web start
JDBC CONNECTIVITY POOLS
Applets and sockets
JNLP and Java Web Start