2 Replies Latest reply on Jun 24, 2002 5:19 AM by venkat

    Jboss as service - howto?

    nikolaj

      Hi there,

      Im interested in having JBoss installed as a windows service. Is it possible? I've been trying to use use the "run_with_catalina.bat" directly - it didn't work. I also tried to take everything from the "run.bat" (java %JAXP% ...) but with nok luck. I get an error 1053 when I try to start the service in both cases. Thanks.

      /nikolaj, copenhagen

        • 1. Re: Jboss as service - howto?
          fstarsinic

          check the following topic

          http://jboss.org/forums/thread.jsp?forum=61&thread=6704

          i use software from the windows NT resource kit which
          you can easily download from the web...

          in a nutshell,
          here's how you create jboss as a service...
          please read the docs that come with SRVANY.exe
          i'm just giving a brief synopsis. is it EASY. REALLY!

          first do this to create the service
          INSTSRV.EXE JBoss c:\util\SRVANY.EXE


          then you go to the registry under
          local machine
          system
          control set
          services
          jboss <------ find this (the jboss service)

          create a Parameters key
          create a Application value with "c:\whatever\startjboss.bat" as the string

          so startjboss.bat will be the batch file that will
          really be your service.
          then just make sure startjboss.bat can start jboss

          such as

          ############################
          set JAVA_HOME=xxxxxxx
          set PATH=xxxxxxxxx
          call \packages\jboss-2.4.1\jboss\bin\run tomcat
          ############################


          if you have any more questions you can post here
          or email me. i do this all the time and it
          works great.

          oh, in run.bat (jboss)
          i've modified the java command to start like this...

          java -Xrs blah blah so the service won't stop
          when someone logs on and off
          (you'll see what i mean if you don't do this. all
          of a sudden your service will quit.)

          frank

          • 2. Re: Jboss as service - howto?
            venkat

            Hai,
            i have gone through ur reply.i tried to do the same .service has been created when i try to run that file
            it says file not found.u said we have to create a key value pair in the registry which shows the batch file(jboss) path.i am unable to run the service .could u please help me out
            idid
            INSTSRV.EXE JBosstest SRVANY.EXE