This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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 ?
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.
SCJP SCWCD AIX SOA
The significant problems we face cannot be solved by the same level of thinking that created them -- Albert Einstein