Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

HOW TO HANDLE CONTROL_LOGOFF_EVENT handler in JAVA
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/t...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


Report this thread to moderator Post Follow-up to this message
Old Post
Zafar
02-23-05 09:00 AM


Re: HOW TO HANDLE CONTROL_LOGOFF_EVENT handler in JAVA
In article <1109143474.828567.28770@g14g2000cwa.googlegroups.com>,
"Zafar" <zafarsm@gmail.com> wrote:

> 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/t...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

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...vice/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 =
--
Steve W. Jackson
Montgomery, Alabama

Report this thread to moderator Post Follow-up to this message
Old Post
Steve W. Jackson
03-01-05 02:00 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:00 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.