I know that JBOSS has the JMX-Console for administration. My question is, is there any command line admin tool which comes with JBOSS using which the status of various services under the control of JBOSS can be tested?
+3
A:
You might want to have a look at twiddle.sh 'A JMX client to 'twiddle' with a remote JBoss server.'
Daan
2008-10-17 08:37:42
+4
A:
Jboss just opened a new project: http://www.jboss.org/jopr/ . This is not a command line but a web application with a dashboard.
I think this is what you are looking for.
I second JOPR, best tool around and very quick and easy to install. In JBoss 5 it's included in the standard distro
massimogentilini
2010-02-23 16:30:05
A:
Instead of a command line tool, you may want to consider scripting in something like Groovy. For example, this quickie will get you started in testing JMX MBean Attributes in your JBoss server, it performs as well as (or better than) individual twiddle invocations and is quite flexible.
import javax.management.*;
import javax.naming.*;
Properties p = new Properties();
p.put(Context.PROVIDER_URL, url);
p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
p.put("jnp.disableDiscovery", "true");
ctx = new InitialContext(p);
contexts.put(url, ctx);
mbeanServer = ctx.lookup("/jmx/rmi/RMIAdaptor");
// Lookups here
The more salient issue, in my view, which is what will drive what tool you end up with is what you're going to do with the data you collect.
//Nicholas
Nicholas
2009-01-04 07:04:36