I recently went through the Orion on NT ordeal (I usually work on Unix/Linux)
and found some new info, so I thought I would pass it along.

To masquerade Orion as a service, I'm using SRVSTART.EXE from Nick Rozanski (
http://www.nick.rozanski.com/software.htm &
http://www.nick.rozanski.com/binaries/srvstart_run.v110.zip). The software is
open source and has lots of nice startup & shutdown options. Here is my config:

[Orion]
env=JAVA_HOME=C:\jdk1.3.1
path=C:\jdk1.3.1\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\WINNT\system32\nls;C:\WINNT\system32\nls\English
startup=C:\jdk1.3.1\bin\javaw.exe -Xrs -jar orion.jar -out log\orion.out -err 
log\orion.err
startup_dir=c:\orion
shutdown_method=command
shutdown=C:\jdk1.3.1\bin\javaw -Xrs -jar c:\orion\admin.jar ormi://localhost/ admin 
123 -shutdown force
auto_restart=y
restart_interval=15

Another thing I found is that JDK 1.3.1 has a command line option (-Xrs) that disables 
console signals, so the JVM will not shutdown when the user logs out.

Hope this helps,
Bob



From: "Vu Le Hung" <[EMAIL PROTECTED]>@orionserver.com on 11/14/2001
      10:00 AM ZE7

Please respond to "Orion-Interest" <[EMAIL PROTECTED]>

Sent by:  [EMAIL PROTECTED]


To:   "Orion-Interest" <[EMAIL PROTECTED]>
cc:
Subject:  Re: How can I start Orion Server as a service in Windows NT/2000 ?



Dear all,
I tried many ways as some of you  proposed
    1. Use JNT
    2. Use JVMI2
    3. Use RunExecSvc
What I got is that I had Orion service added  to my system (as a Automatic
service) but
    - This service does not start  automatically when my computer boots up.
    - Even after I start it by hand  successfully, the Http Server doesn't
start with the Orion service. (i.e. I can't get to my home page  installed in
my computer by typing my IP address in IE)


Any one know why ??? Please give me an idea.  Thanks.


By the way, my system configuration is
    + PIII 667MHz 128MB  RAM
    + Win2000 Advanced  Server
    + JDK1.3
    + Orion 1.4.5 demo  version.
My website work fine when I start  Orion manually.
Yours,
Vu Le Hung

----- Original Message -----
From:  Justin  Crosbie
To: Orion-Interest
Sent: Monday, November 12, 2001 4:49  PM
Subject: RE: How can I start Orion Server  as a service in Windows NT/2000 ?

Hi  Vu,

You  need the JNT application from http://www.eworksmart.com/JNT/

Install  this and type a command similar to the following, from where you
installed  Orion:
     jnt "/InstallAsService:Orion Application Server" "/SD[ORION_HOME]" -jar
orion.jar

where  [ORION_HOME] is where you installed Orion. Worked for me, anyway. I had
a job  getting other java apps to run using this tool though :(

This  has come up in the list before, so do a search on the archive for more
info.

One  thing I have noticed is that Orion runs slower this way than if you start
it  from a command prompt. Anyone know anything about this? I've asked this
before.

Cheers,
Justin
-----Original Message-----
From: Vu Le Hung  [mailto:[EMAIL PROTECTED]]
Sent: 12 November 2001  04:38
To: Orion-Interest
Subject: How can I start Orion  Server as a service in Windows NT/2000 ?


Dear all,
I'm trying to find a way to start Orion Server  as a service in WindowsNT/2000
( i.e. Orion will be started  automatically when my computer startup without
any user  interaction).
Any one know how to do this ?
I tried this as below but it failed
    1. Write an small   Win32 application "startorion.exe" that calls "java
-jar  orion.jar"
    2. Register it as a  automatic service (named MyService) with Win2000 using
"Service Installation  Wizard" tool in the Windows 2000 Server Resource Kit.
    3. Restart my computer.
Then I can find item "MyService"   in the list of all available services in  my
computer. But this service can not be start.
Any idea ??? Thanks in advance.
Vu Le Hung








Reply via email to