This content has been marked as final.
Show 4 replies
-
2. Re: [JBoss 5][Windows service] run JBoss 5.0.1 as Windows se
faxanadu Apr 6, 2009 8:20 AM (in response to faxanadu)Thank you. It works.
But isn't there a "cleaner" way to give params than hard coding them in the script ? -
3. Re: [JBoss 5][Windows service] run JBoss 5.0.1 as Windows se
peterj Apr 6, 2009 12:35 PM (in response to faxanadu)I usually make a copy of the service.bat file, say as service_jbas50.bat, and make the changes in there. I also change the script reference on this line:
jbosssvc.exe -imwdc %SVCNAME% "%DIRNAME%" "%SVCDISP%" "%SVCDESC%" service_jbas50.bat
I also don't hard-code the parameters within the statements in the script - instead I set some env vars at the start of the script and use them later. For an example, download the source code for JBoss in Action (http://www.manning.com/jamae), and in jbia-src/ch15 run ant target 04. -
4. Re: [JBoss 5][Windows service] run JBoss 5.0.1 as Windows se
faxanadu Apr 7, 2009 10:51 AM (in response to faxanadu)Thank you Peter. It works fine.
Indeed, I find that cleaner.
Thank you for your help