Allan Stuart Meidlein wrote:
> 
> Hi, I have Apache 1.3.6 w/ Apache JServ 1.0b5 running on a Unix box and
> this works great.  I would also like to run a JServ engine on the NT box
> and I've read a lot of documentation, but I'm still unsure as to how I
> should implement this.

Do you want to run the servlet engine standalone on NT, rather than
having apache start it? If so, try this:

Install INSTSRV.EXE and SRVANY.EXE from the NT resource kit - this
allows you install and run respectively any .exe as an NT service. The
syntax of INSTSRV is as follows:

INSTSRV <serviceName> <pathToExe>

In this case your exe is SRVANY.EXE, call your service something like
ApacheJServ

Then you need to edit the NT registry as follows:

run regedt32.exe

Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<serviceName>
add a key called Parameters. Within this key add three values:
Application, AppDirectory and AppParameters where each is as follows:

Application is the path to your java.exe (E:\jdk1.2\bin\java.exe in my
case)

AppDirectory is the directory you want the service to run in (E:\JServ
for example)

AppParameters are the arguments to java - in my case I am using the
following: 

-classpath .;E:\jsdk2.0\lib\jsdk.jar;E:\JServ\jserv.jar
org.apache.jserv.JServ E:\JServ\conf\jserv.properties

Edit the startup options as per normal under services in the control
panel.

I am currently using this arrangement in production and it works fine.
There is one limitation however and that is that the normal NT service
shutdown does not stop JServ correctly. To do this you need to connect
to it via AJPv11 and give it a signal 15. 

If some NT guru out there wants to write and NT service wrapper for
JServ, it would be appreciated!

Damian

-- 
Damian Fauth                     John Fairfax Holdings Ltd
Software Engineer                        201 Sussex Street
Ph: +61 2 9282 3528                      Sydney  NSW  2000
Fax: +61 2 9282 2256          [EMAIL PROTECTED]


-- --------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to