how to create a java application that perform certain action before the system is logged off by the user?
<p>i wanna create a java application that must perform some essential action (closing of file objects successfully or any other task) before it is terminated by the user using task manager or before the system is logged off (or shut down) by the user.</p>

<p>Is it possible in java????</p>

<p>Thanks in advance....</p>
