This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Okay, I've solved two of three issues with a db dependant app that I wrote. When a user is no longer using the app the database flags there ID with an 'N' in a field of the DB. It works if they Exit the app with button I've created, or if the use the "X" to close the window via the file systems method. What do I do if the user just shuts down the machine therefore leaving it up to the JVM to exit the app? How can I get the app to update the DB with the 'N' flag?
Ryan Headley<br /><a href="http://www.sudovi.com" target="_blank" rel="nofollow">http://www.sudovi.com</a>
Well, That didn't seem to work. What I am trying to avoid is the user shutting down the machine without exiting the application first. If they don't exit the application, their "active" status doesn't get changed. When they first sign into it the "active" flag gets set to "Y". When the app closes, it should set the "active" flag to "N". If they just shut downt he machine leaving the closing to the JVM, the update never happens. Is there a way to ensure that change occurs?