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

PeterJ do-not-reply at jboss.com
Thu Jul 17 11:34:15 EDT 2008


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);
  | }

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

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



More information about the jboss-user mailing list