>From within a war file, I need to access the Connector Address.

Currently I am doing this by:

javax.management.MBeanServer mBeanServer =
org.apache.commons.modeler.Registry.getRegistry( null, null
).getMBeanServer();
javax.management.ObjectName identifier = new
javax.management.ObjectName( "Catalina:type=ThreadPool,*" );
java.util.Set objectNameSet = mBeanServer.queryNames( identifier, null );
for( java.util.Iterator i = objectNameSet.iterator(); i.hasNext();
identifier = (javax.management.ObjectName)i.next())
{
      if( identifier != null )
      {
              String connectorAddress = identifier.getKeyProperty( "name" );
      }
}


Is there an easier or better way to accomplish the same thing ?

-Thanks
Steve More

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to