Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Track the closing of client application launched through Java Web Start

 
Ram Mohan Alias
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic