|
From: Laurent C. <Lau...@jp...> - 2008-09-06 13:05:09
|
Hello, I am having an issue with a windows service stopping when the user logs out. I'm using Java Service Wrapper 3.3.1 (CE) on Windows XP sp2, Sun JDK 1.6_u4 Here's what happens: - my app is made in fact of 2 Java processes A and B - process A launches process B when it starts - process A starts a ServerSocket, accepts a connection from process B, then reads from that connection. this tells A when B is killed using Ctrl-C or the task manager, it also tells B when A is killed as well. In either case the other process stops - if B exits "normally", using a System.exit(x), A gets the exit code, if the code is 2 it restarts B, otherwise it exits as well. The goal of this is to enable a remote restart of process B from a JMX-enabled GUI - what I have noticed is that when I logout, then login again, the service is stopped, and I see a connection reset exception in the log of process A, which means that process B died somehow, thus getting process A to exit. Do you have any hints as to why the process B is killed when login out, and are there any configuration options I can use to prevent it? Thanks for your time, -Laurent --------------------------------- Laurent Cohen Visit JPPF at http://www.jppf.org |