[jboss-user] [Beginners Corner] - Re: JBoss API usage examples

danishkhan do-not-reply at jboss.com
Thu Jul 17 12:47:57 EDT 2008


"PeterJ" wrote : public static void main(String[] args) throws Exception {
  |   |  Context ctx = new InitialContext();
  |   |  MBeanServerConnection mconn =(MBeanServerConnection)ctx.lookup("jmx/invoker/RMIAdaptor");
  |   |  ObjectName name = new ObjectName("jboss.jca:name=xxxDS,service=ManagedConnectionPool");
  |   |  Object val=mconn.getAttribute(name,"InUseConnectionCount");
  |   |  System.out.println(name+"\n\tInUseConnectionCount="+val);
  |   | }

-Thanks Peter

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165129#4165129

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165129



More information about the jboss-user mailing list