final ObjectName pattern =
Util.newObjectName( "com.sun.appserv:category=" + category + ",*");
final Set<ObjectName> objectNames =
JMXUtil.queryNames( getMBeanServerConnection(), pattern, null );
final HashMap<String,ObjectName> m = new HashMap<String,ObjectName>();
for( final ObjectName objectName : objectNames )
{
final String type = objectName.getKeyProperty( "type" );
if ( type != null )
{
m.put( type, objectName );
}
}
return m;