|
From: <zge...@ex...> - 2004-05-22 18:13:11
|
I need to convert the Java RMID process into a windows service. Using integration method 3 I did the following: 1) Create a WrapperListener implementation that uses java.lang.Runtime.exec(...) to launch "rmid.exe". The implementation's "stop" method similarly launches "rmid.exe -stop" to stop the previously launched rmid process. 2) Install the WrapperListener implementation as an NT service. On installing the service and starting it and after activating a remote object in a separate Activatable Server (that rmid process takes care of launching), I see the following processes (among others) in the "Windows Task Manager". #a) wrapper.exe #b) java.exe (the WrapperListener implemenation) #c) rmid.exe (launched by #b) #d) java.exe (activated by rmid.exe in #c). On stopping the service all of these processes come down cleanly. Here's the problem: After launching the service - if I logoff, rmid.exe (#c) and the java.exe (#d) process seem to shutdown. When I login again, all four processes are gone. In the WrapperListener implementation I do get the Service Control Event indicating that a logoff has happened - The current behavior is to let the native WrapperManager handle all service control events. Are processes launched from the WrapperListener implementation under the control of the service - i.e. live and die with the life of the service? Has anyone successfully implemented rmid as a service (especially including its activation features) not just as a registry? Can JSW be used for a case like this to first launch rmid.exe which can then internally launch multiple JVMs that can survive login/logoffs. Thanks for all your help in advance. Zac George _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! |