RE: [JBoss-user] Stopping JBossI've been playing with the org.jboss.jmx.client.Stop class. I've no idea what it's really intended for, I just thought I'd have a look at the interestingly named 'stop.jar' in the client directory.
It stops JBoss under Win2K, but I initially got an error on Linux, but I just tried to reproduce it, and all worked fine.... Thoughts/improvements, anyone? david --- StopJB.bat --- @echo off @if not "%ECHO%" == "" echo %ECHO% @if "%OS%" == "Windows_NT" setlocal set STOP_CLASSPATH=%JBOSS_CLASSPATH%;%JBOSS_HOME%/client/stop.jar java -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory - Djava.naming.provider.url=localhost:1099 -classpath "%STOP_CLASSPATH%" org.jboss.jmx.client.Stop --- --- --- stopJB.sh --- #!/bin/sh # Minimal jar file to send JBoss a stop message. STOP_CLASSPATH=$JBOSS_CLASSPATH:$JBOSS_HOME/client/stop.jar java -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory - Djava.naming.provider.url=localhost:1099 -classpath $STOP_CLASSPATH org.jboss.jmx.client.Stop --- --- -----Original Message----- From: Juergen Fiedler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 9:49 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Stopping JBoss OK, this one _must_ be more trivial than it seems to me. I am starting JBoss (under Linux) by calling 'run.sh &' in the bin/ directory of JBoss. After that, I have about 50 threads that seem to be doing the same thing: run org.jboss.Main. Everything works quite fine. The only problem is: I don't know how to shut the server down. Right now, I just do a 'killall java'. This only works because JBoss is the only piece of Java based software on my machine. But there has to be a more elegant way to stop JBoss. Could anybody please help me to figure out how to do it the right way? Thanks in advance, Juergen _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user