JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java Tools  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 有人成功把activemq安装为windows服务么?
ncowboy





發文: 44
積分: 0
於 2006-04-26 10:05 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我倒是成功安装了,我使用的是javaservice。但是不能够启动。郁闷啊。
有人玩这个么?

我的安装脚本
@echo off

set ACTIVE_MQ_HOME=D:\apps\activemq-4.0-M4
set JAVA_5_HOME=C:\Program Files\Java\jre1.5.0_06

set my_classpath=%ACTIVE_MQ_HOME%\conf
set my_classpath=%my_classpath%;%ACTIVE_MQ_HOME%\bin\run.jar

set OPT=
set OPT=%OPT% -Xmx512M
set OPT=%OPT% -Dderby.system.home="..\data"
set OPT=%OPT% -Dderby.storage.fileSyncTransactionLog=true
set OPT=%OPT% -Dactivemq.home="%ACTIVE_MQ_HOME%"

%ACTIVE_MQ_HOME%\bin\ActiveMQService.exe -install ActiveMQService "%JAVA_5_HOME%\bin\server\jvm.dll" -Djava.class.path="%my_classpath%" %OPT% -start org.apache.activemq.console.Main -params start -stop org.apache.activemq.console.Main -params stop -method systemExit -out %ACTIVE_MQ_HOME%\bin\service-out.log -err %ACTIVE_MQ_HOME%\bin\service-err.log -current %ACTIVE_MQ_HOME%\bin
安装之后的注册表
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ActiveMQService]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):44,00,3a,00,5c,00,61,00,70,00,70,00,73,00,5c,00,61,00,63,00,\
74,00,69,00,76,00,65,00,6d,00,71,00,2d,00,34,00,2e,00,30,00,2d,00,4d,00,34,\
00,5c,00,62,00,69,00,6e,00,5c,00,41,00,63,00,74,00,69,00,76,00,65,00,4d,00,\
51,00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,2e,00,65,00,78,00,65,00,00,\
00
"DisplayName"="ActiveMQService"
"ObjectName"="LocalSystem"
"Description"="JavaService utility runs Java applications as services. See http://javaservice.objectweb.org"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ActiveMQService\Parameters]
"JavaService Version"="2,0,9,0"
"JVM Library"="C:\\Program Files\\Java\\jre1.5.0_06\\bin\\server\\jvm.dll"
"JVM Option Count"=dword:00000005
"JVM Option Number 0"="-Djava.class.path=D:\\apps\\activemq-4.0-M4\\conf;D:\\apps\\activemq-4.0-M4\\bin\\run.jar"
"JVM Option Number 1"="-Xmx512M"
"JVM Option Number 2"="-Dderby.system.home=D:\\apps\\activemq-4.0-M4\\activemq-data\\derbydb"
"JVM Option Number 3"="-Dderby.storage.fileSyncTransactionLog=true"
"JVM Option Number 4"="-Dactivemq.home=D:\\apps\\activemq-4.0-M4"
"Start Class"="org.apache.activemq.console.Main"
"Start Method"="main"
"Start Param Count"=dword:00000001
"Start Param Number 0"="start"
"Stop Class"="org.apache.activemq.console.Main"
"Stop Method"="main"
"Stop Param Count"=dword:00000003
"Stop Param Number 0"="stop"
"Stop Param Number 1"="-method"
"Stop Param Number 2"="systemExit"
"System.out File"="D:\\apps\\activemq-4.0-M4\\bin\\service-out.log"
"System.err File"="D:\\apps\\activemq-4.0-M4\\bin\\service-err.log"
"Current Directory"="D:\\apps\\activemq-4.0-M4\\bin"
"Shutdown Timeout"=dword:00007530
"Overwrite Files Flag"=dword:00000000
"Startup Sleep"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ActiveMQService\Security]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\
00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\
00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ActiveMQService\Enum]
"0"="Root\\LEGACY_ACTIVEMQSERVICE\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001



reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
3242 有人成功把activemq安装为windows服务么? ncowboy 3632 2006-04-26 10:05
» JWorld@TW »  Java Tools

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8