I had the same problem, so I went after comments in org.jboss.Main.systemExit about Alexandria and downloaded mentioned NT Service Installer from http://www.alexandriasc.com/software/JavaService/download.html
I copied JavaService.exe to %JBOSS_HOME%\bin\jboss.exe and prepared scrip %JBOSS_HOME%\bin\InstallJBoss.bat (attached, along with %JBOSS_HOME%\bin\UnInstallJBoss.bat) based on %JBOSS_HOME%\bin\run.bat which works for me (I have not tried if it works for jboss installation in directory containing whitespaces in its name). So, if you just need some way to run it as NT Service, try this, in my case shutdown via Services panel works correctly (I run it under Windows XP).
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Knight
Sent: Wednesday, June 05, 2002 11:02 AM
To: jboss List
Subject: [JBoss-user] How to shutdown JNT nt service gracefully?

Hello,
I am using JNT to run JBoss as an NT service and starting the service works fine.  But when I try to stop it, using the Services panel in NT, it hangs.
The JNT documentation shows a way for you to specify a shutdown method, which must not take any parameters...I believe  the systemExit method in org.jboss.Main does take an argument.  I assume this is why specifying systemExit as the shutdown method doesn't work.
Is there any way to do this?
 
Thanks,
 
Steve

Attachment: ntservice.zip
Description: Zip compressed data

Reply via email to