Hi,
I'm an absolute beginner in setting up services on Windows box.
Please, bear with me if my questions seem stupid.
I have a windows XP machine, I'm using Oracle Java Developer for java 
develpment, I'm using Quartz as a scheduler.  We will be transferring our 
application to a Linux box eventually.
I need to set up a service and I understand that commons-daemon package will 
allow me to do that.
I was not able to find a built version of procrun  and I don't have a C or C++ 
compiler.
I found out that people use tomcat5.exe insted since that seems to be a 
compiled version of procrun.
Here is how I tried setting up my service:


C:\tomcat\jakarta-tomcat-5.5.9\bin>tomcat5.exe //IS//MyTest 
--DisplayName="MyTest" 
\ --Install="C:\tomcat\bin\tomcat5.exe" --Jvm=auto --StartMode=jvm 
--StopMode=jvm 
\ --StartClass="com.mypackage.pfjobmanager.testQuartz" \ 
--"C:\Program Files\JavaDeveloper\jdev\mywork\PFJobManager\Project\src" \ 
--JavaHome="C:\Program Files\JavaDeveloper\jdk\jre\bin"

When executed on the command line, the above command doesn't give me any errors 
but returns right away.

When I ran:
sc query MyTest

here is what I get:

SERVICE_NAME: MyTest
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 1  STOPPED
                                (NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 1077       (0x435)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

I'm not sure how to read the above.
How do I know my service is working?
The class that the service is supposed to run should wait about a minute and 
then print some lines to stdout.
How can I ran a good test?

Your help is greatly appreciated.
Thank you.
NK





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to