This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Although not mentioned as one of the possible solutions in the above article, using IP aliases seemed to work. The problem is how do I stop a certain JBOSS instance? For example I have three IP aliases: X.X.X.200, X.X.X.201 and X.X.X.202 each running a running a different server configuration on the same machine.
All three are running per a "ps -ef | grep jboss". On the JBoss site there is info for shutting down different instances if the different instances are using different ports with the "shutdown" command however I couldnt find anything for my situation. In addition to that, the shutdown commands options seem not to support any references to a particular IP address. Please help. Thanks
Joined: Aug 19, 2003
I might add that I did try doing a ./shutdown.sh -S -s X.X.X.200:1099
with the following results:
-bash-3.00$ ./shutdown.sh -S -s XX.XX.XX.200:1099 Exception in thread "main" java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
I know that we got this solved in another forum, but for those ranch hands who are looking for the answer to this particular question, here goes.
Diego is running JBossEAP 4.3. This version is available only from the JBoss support site. EAP has the jmx invoker locked down by default. To make it even more secure, there is no username/password defined. Thus you cannot shut the server down this way.
So the first step is to modify the server/xxx/conf/props/jmx-console-users.properties file to add one or more user/password entries. Then, after restarting the app server, you can stop it by running:
./shutdown.sh -S -s hostname:1099 -u user -p password