隨筆 - 3, 文章 - 1, 評論 - 0, 引用 - 0
          數(shù)據(jù)加載中……

          讓JBoss變成Windows的服務(wù)!

          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)  編輯  收藏


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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 弥勒县| 大渡口区| 视频| 太原市| 报价| 易门县| 遵义市| 北安市| 雅安市| 泰州市| 古蔺县| 白沙| 赤峰市| 芜湖市| 章丘市| 太康县| 衡东县| 随州市| 青岛市| 五台县| 阳泉市| 两当县| 梅州市| 慈溪市| 和平区| 阳江市| 吴忠市| 眉山市| 嘉义县| 井冈山市| 湾仔区| 曲阜市| 苗栗市| 石狮市| 信阳市| 盐津县| 武胜县| 北碚区| 江北区| 龙里县| 龙川县|