ResourceTreeNode createServer (String serverName) throws Exception
{
ObjectName objectName = new ObjectName(serverName);
J2EEServerMBean serv = (J2EEServerMBean)
MBeanProxyExt.create(J2EEServerMBean.class, objectName, getMBeanServer ());
String[] deployedON = serv.getdeployedObjects();
ResourceTreeNode[] subResArray = createDeployedObjects (deployedON);
return createResourceNode (
serv.getserverVendor () + " - " + serv.getserverVersion (), // name
objectName.getKeyProperty ("name"), // description
"images/database.gif", // Icon URL
null, //"J2EEDomain.jsp?objectName=" + encode(objName.toString()), // Default URL
null,
new TreeNode[] {createSubResources (serv.getresources())}, // sub nodes
subResArray, // Sub-Resources
serverName.toString (),
org.jboss.management.j2ee.J2EEServer.class.getName ()
);