隨筆 - 3, 文章 - 1, 評論 - 0, 引用 - 0
          數據加載中……

          讓JBoss變成Windows的服務!

          http://javaservice.objectweb.org/
          Example (JBoss 3.0)

          The JBoss server software provides a Java run-time environment that can be used for JSP and J2EE applications. In this use, it often needs to be run as a Windows NT System Service, for which the JavaService utility is designed. Depending on configuration, JBoss may require that an associated database server is already running, which should be set up as a Windows NT Service dependency, with the example below set up against the MySql database. {JDK_HOME} is the location of your JDK and {JBOSS_BIN} is the location of your JBoss binaries installation. These instructions are based on information in the JBoss 3.0 quick-start guide, but are in any case provided 'as is'.

          1. Copy the JavaService.exe file into the {JBOSS_BIN} directory as JBossService.exe.
          2. Start a command prompt and change to the directory {JBOSS_BIN}.
          3. Run the following command:
            JBossService.exe -install JBoss
            {JDK_HOME}\jre\bin\{hotspot|server|classic}\jvm.dll
            -Djava.class.path={JDK_HOME}\lib\tools.jar;{JBOSS_BIN}\run.jar
            -start org.jboss.Main
            -stop org.jboss.Main -method systemExit
            -out {JBOSS_BIN}\stdout.log
            -err {JBOSS_BIN}\stderr.log
            -current {JBOSS_BIN}
            -depends mysql
            -manual
            -overwrite
            -startup 10
          4. To remove the registered service, run the following command from the same directory:
            JBossService.exe -uninstall JBoss

          The JBoss service can then be started by issuing the following command, which will also start the MySql service beforehand if it is not already running:
          net start jboss

          The service can then be stopped by issuing the following command:
          net stop jboss

          posted on 2006-01-15 00:58 漢尼 閱讀(701) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 浦江县| 乐至县| 台南市| 长丰县| 吴桥县| 通渭县| 永顺县| 搜索| 淮滨县| 榕江县| 柏乡县| 上饶市| 驻马店市| 石林| 虹口区| 吉安县| 抚远县| 武义县| 平乡县| 班戈县| 临朐县| 营口市| 卓尼县| 博罗县| 塔河县| 岑巩县| 六安市| 三河市| 黄平县| 通榆县| 高州市| 葫芦岛市| 比如县| 龙井市| 高要市| 三江| 丰镇市| 葫芦岛市| 曲阜市| 梧州市| 安仁县|