[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Running Two Jboss as Windows Service

sajithpp do-not-reply at jboss.com
Tue Sep 11 12:49:58 EDT 2007


"PeterJ" wrote : Oh, and also tell me how you set up the two services.

iam using JavaService.exe

i run "install.bat" in the from the bin Directory of jboss 




and my install.bat is for JBOSS 1 :
-------------------------------------------------------------

Rem Start Here
set javadll=%JAVA_HOME%\jre\bin\client\jvm.dll
set javatool=%JAVA_HOME%\lib\tools.jar
set javarun=%JBOSS_HOME%\bin\run.jar
set outlog=%JBOSS_HOME%\bin\stdout.log
set errlog=%JBOSS_HOME%\bin\stderr.log

JavaService.exe -install JBoss "%javadll%" -Djava.class.path="%javatool%";"%javarun%" -start org.jboss.Main -stop org.jboss.Main -method systemExit -out "%outlog%" -err "%errlog%" -current "%JBOSS_HOME%\bin" -manual 
Rem End Here

JBoss 2
-----------------------------------------------------------------
Rem Start Here
set javadll=%JAVA_HOME%\jre\bin\client\jvm.dll
set javatool=%JAVA_HOME%\lib\tools.jar
set javarun=%JBOSS_HOME1%\bin\run.jar
set outlog=%JBOSS_HOME1%\bin\stdout.log
set errlog=%JBOSS_HOME1%\bin\stderr.log

JavaService.exe -install JBoss1 "%javadll%" -Djava.class.path="%javatool%";"%javarun%" -start org.jboss.Main -stop org.jboss.Main -method systemExit -out "%outlog%" -err "%errlog%" -current "%JBOSS_HOME1%\bin" -manual 
Rem End Here

Ihave twi JBOSS_HOME env variable

1. JBOSS_HOME set to c:\jboss
2. JBOSS_HOME1 set to c:\jboss1


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083115#4083115

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083115



More information about the jboss-user mailing list