ResourceTreeNode[] createModules(String[] modules) throws Exception {
ResourceTreeNode[] deployed = new ResourceTreeNode[modules.length];
for (int i = 0; i < modules.length; i++)
{
//J2EEApplication earProxy = (J2EEApplication)
// MBeanProxy.create(J2EEApplication.class, objName, getMBeanServer());
ObjectName objectName = new ObjectName(modules[i]);
deployed[i] = createResourceNode (
objectName.getKeyProperty ("name"), // name
"", // description
"images/EspressoMaker.gif", // Icon URL
null, // "J2EEApp.jsp?ObjectName=" + encode (objName.toString ()), // Default URL
null,
null, // sub nodes
null, //createEARSubModules (objName), // Sub-Resources
modules[i].toString (),
this.mbeanServer.getMBeanInfo (objectName).getClassName ()
).setVisibility (ResourceTreeNode.INVISIBLE_IF_SUBNODE_EXISTS);
}
return deployed;
}
|