Snippets code from my daily experience

June 9, 2007

More Jboss on same machine (shutdown)

Filed under: java,jboss — dafi @ 9:19 am

When you run the shutdown.sh script Jboss receives a “communication” through the NamingService port (default 1099) so if you want to stop a second Jboss instance you must modify the shutdown.sh script adding the line shown below:

JAVA_OPTS=-Djava.naming.provider.url=jnp://localhost:2099

Change the port number (in example 2099) to your Jboss correct value

5 Comments

  1. tnx you have solved my problem today…….

    Comment by mrbyte — November 7, 2007 @ 4:11 pm

  2. sorry…….
    not work for me, i have solved with
    $ shutdown.sh localhost

    = the port that i have configured in my second jboss

    Comment by mrbyte — November 7, 2007 @ 7:04 pm

  3. Solved my problem too ^_^

    NamingService port number is in jboss-service.xml file … juste in case it can help beginner like me.

    Comment by J2FF — November 25, 2009 @ 2:28 pm

  4. Try killing the process using following command:
    kill -9 `ps aux | grep processName | awk ‘{print $2}’`

    where processName is a unique name that you can recognize your server by.
    It can be your server path. As a case in instance if you have installed your servers in /root/jboss/myfirstserver and /root/jboss/mysecondserver you can simply kill the first one by following command:
    kill -9 `ps aux | grep myfirstserver | awk ‘{print $2}’`

    regards

    Comment by vafa — May 3, 2010 @ 8:35 am

  5. Try killing the process using following command:
    kill -9 `ps aux | grep processName | awk ‘{print $2}’`

    Regards
    Vafa

    Comment by vafa — May 3, 2010 @ 11:56 am


RSS feed for comments on this post.

Blog at WordPress.com.

%d bloggers like this: