Aloys,
This is possible in 3.1.2, but it will take a little bit of work on
your part.
Set up a thread with calls WrapperManager.getInteractiveUser at regular
intervals
When the user is logged off, it will return null. When logged in it
will return an object
describing the user.
You can then at the time of your choosing cal WrapperManager.restart
to restart
the JVM.
In order to get the above working however, you will need to have
your service
installed with the wrapper.ntservice.interactive=true property set. See the
documentation on all of the above.
Cheers,
Leif
alo...@gm... wrote:
>Hi,
>
>I have started using the Java-Service-Wrapper on WindowsXp (Sp2, Jdk 1.4.2) and would
>like to know if there is a possibility to restart the Service on User-login.
>
>Background is that I used systray4j to display an icon for my Service-program in the system-
>tray and the icon is lost on changing the user but restarting the service makes it appear
>again. Smae problem happens when I stop the Explorer-task and restart it.
>
>Currently I am using integration method 1 but of course I would be willing to use method 3 as
>well.
>
>Thanks, Aloys
>
>
|