derby (java db) service processes terminates upon user logout

I am using Sun Appsever 8.2 with Derby (Java DB) for a web application being deployed on a windows xp box. I have managed to configure the derby server and the app server to start as windows services. I have further managed to deal with the app server exiting when a user logs out of windows (by add the -Xrs JVM argument to the appserver). I have not found a way to similarly configure the derby server.

I start the derby server with "asadmin.bat start-database". I'm looking for away to put the -Xrs arument on the resulting call that fires up the database. Does anyone know how I might accomplish this?

Thanks in advance,

Greg

Message was edited by:

gjm

[695 byte] By [gjm] at [2007-11-26 10:39:07]
# 1

I'd like to know the answer to this question as well.

-Stosh

> I am using Sun Appsever 8.2 with Derby (Java DB) for

> a web application being deployed on a windows xp box.

> I have managed to configure the derby server and the

> app server to start as windows services. I have

> further managed to deal with the app server exiting

> when a user logs out of windows (by add the -Xrs JVM

> argument to the appserver). I have not found a way to

> similarly configure the derby server.

>

> I start the derby server with "asadmin.bat

> start-database". I'm looking for away to put the -Xrs

> arument on the resulting call that fires up the

> database. Does anyone know how I might accomplish

> this?

>

> Thanks in advance,

>

> Greg

>

> Message was edited by:

> gjm

john_stosh at 2007-7-7 2:50:32 > top of Java-index,Application & Integration Servers,Application Servers...
# 2

It is possible to create a service for derby using the Java Service Wrapper which keeps the service alive when the user logs out.

In the configuration file for the wrapper you specify the class name "org.apache.derby.drda.NetworkServerControl" as the class to use when starting and stopping the service (found it in the file startNetworkServer.bat in the javadb directory)

HenrikR at 2007-7-7 2:50:32 > top of Java-index,Application & Integration Servers,Application Servers...