try
{
MBeanServer mbs = SunoneInterceptor.getMBeanServerInstance();
GenericConfigurator genConf = new GenericConfigurator();
mbs.registerMBean(new GenConfigTestMBean("str1", 2), new ObjectName("ias:instance-name=ias1,component=orb")); //a server-instance
mbs.registerMBean(new GenConfigTestMBean("str3", 4), new ObjectName("ias:instance-name=ias1,component=test")); //a server-instance
// mbs.registerMBean(genConf, new ObjectName("ias:type=configurator")); //a server-instance
AttributeList attrList = genConf.getGenericAttributes(new String[]{"server.ias1.orb.name","server.ias1.orb.port","server.ias1.orb.*"});
// AttributeList attrList = genConf.getGenericAttributes(new String[]{"server.ias1.*.*"});
Iterator it = attrList.iterator();
while (it.hasNext())
{
Attribute attribute = (Attribute) it.next();
String name = attribute.getName();
Object value = attribute.getValue();
System.out.println("Attribute name="+name+" value="+value);
}
}
catch(Throwable e)
{
e.printStackTrace();
}