This content has been marked as final.
Show 4 replies
-
1. Re: Problem stopping JBoss: wrong port number
aalmero Aug 3, 2004 6:37 PM (in response to scottymo)you can use this script below.
#!/sbin/sh case "$1" in 'start') echo "Starting Jboss Server" /usr/jboss/bin/run.sh>&1 | tee /var/log/jboss & ;; 'stop') echo "Stopping Jboss Server" # PID = /usr/bin/pgrep java /usr/bin/pkill -9 java ;; *) echo "Usage: $0 { start | stop }" exit 1 ;; esac exit 0
hth
aalmero -
2. Re: Problem stopping JBoss: wrong port number
gratcliffe Aug 4, 2004 7:16 AM (in response to scottymo)In the bin directory there is a shutdown.jar. If you look in this you will see
there is a jndi.properties file. It contains localhoat:1099. If you use
shutdown.sh or shutdown.bat it will use the file unless you ensure another version, that can contain the correct host/port, is found first.
Note that using this method of shutting JBoss down is a 'polite' request via JMX. If things have gone badly wrong it may not work. The other poster showed a better approach for Unix. For Windows I would suggest the Java Wrapper service. Details in the wiki I think.
Gary -
3. Re: Problem stopping JBoss: wrong port number
genman Aug 6, 2004 2:35 AM (in response to scottymo)Last line of shutdown.sh, you can specify the port number to use:
org.jboss.Shutdown -S -s jnp://localhost:10990 -
4. Re: Problem stopping JBoss: wrong port number
gratcliffe Aug 6, 2004 4:40 AM (in response to scottymo)Thanks for the -s tip.
Didn't know about that.