1 25 26 package org.objectweb.easybeans.jsr77; 27 28 import javax.management.MBeanException ; 29 30 import org.objectweb.easybeans.api.EZBServer; 31 import org.objectweb.easybeans.container.JContainer3; 32 import org.objectweb.easybeans.jmx.MBeansException; 33 import org.objectweb.easybeans.jmx.MBeansHelper; 34 35 39 public class J2EEDeployedObjectMBean extends J2EEManagedObjectMBean<JContainer3> { 40 41 45 public J2EEDeployedObjectMBean() throws MBeanException { 46 super(); 47 } 48 49 52 public String getDeploymentDescriptor() { 53 throw new UnsupportedOperationException ("Not implemented yet !"); 55 } 56 57 60 public String getServer() { 61 EZBServer server = getManagedComponent().getConfiguration().getEZBServer(); 62 try { 63 return MBeansHelper.getInstance().getObjectName(server); 64 } catch (MBeansException e) { 65 getLogger().warn("Cannot retrieve ObjectName for EZBServer ''{0}''", server.getID()); 66 return null; 67 } 68 } 69 } 70 | Popular Tags |