Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / February 2005

Tip: Looking for answers? Try searching our database.

HOW TO HANDLE CONTROL_LOGOFF_EVENT handler in JAVA

Thread view: 
Zafar - 23 Feb 2005 07:24 GMT
Hi All,

One of my services is killed when i log off from my Win XP/2000
machine, i.e., it is removed from the list of running processes in the
Task Manager . It needs to be restarted manually again after a login.

I did some investigation and found that this was due to the
"CTRL_LOGOFF_EVENT" passed by the
JVM(http://java.sun.com/j2se/1.3/docs/tooldocs/win32/java.html). It
further said to use the -Xrs option to ignore such events.

Can someone please tell me how to use this option correctly? Its really
urgent, and I am currently at my  wits end,so any help would be greatly
appreciated.

Thanks In advance,
Zafar
Steve W. Jackson - 28 Feb 2005 21:06 GMT
> Hi All,
>
[quoted text clipped - 13 lines]
> Thanks In advance,
> Zafar

I recall dealing with this issue several months ago and never quite
finding a suitable solution.  I ultimately ended up using the freely
available program JavaService, which I obtained from the web site at
<http://www.multiplan.co.uk/software/javaservice/index.html>.  Since
that time, I see that there have been updates to it and somebody else
has taken it on as an open source project.  Links are there to all of
that.

This turned out to be the easiest overall solution for my purposes, so
that I could create batch files that install or uninstall a service that
will work quite nicely.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.