[jboss-user] [Management, JMX/JBoss] - Re: any way to find server uptime
Roopa G
do-not-reply at jboss.com
Wed Apr 9 06:56:30 EDT 2008
hi
i have used the jboss.system:service=Server to find the jboss start date. but i get MBean exception. how to resolve this problem?
My code looks like,
RMIAdaptor jbossServer = (RMIAdaptor) ctx.lookup("jmx/invoker/RMIAdaptor");
ObjectName mgr = new ObjectName("jboss.system:service=Server");
Object newObj = jbossServer.invoke(mgr, "getStartDate", null, null);
Am I missing out something? Please help.
i need to find the Jboss uptime.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142670#4142670
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142670
More information about the jboss-user
mailing list