• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Track the closing of client application launched through Java Web Start

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 81
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic