1 25 26 package org.objectweb.easybeans.container.management; 27 28 import javax.management.MBeanException ; 29 30 import org.objectweb.easybeans.api.EZBContainerException; 31 import org.objectweb.easybeans.jsr77.EJBModuleMBean; 32 33 37 public class JContainer3MBean extends EJBModuleMBean { 38 39 43 public JContainer3MBean() throws MBeanException { 44 super(); 45 } 46 47 50 public void start() { 51 try { 52 getManagedComponent().start(); 53 } catch (EZBContainerException ece) { 54 getLogger().error("Cannot start the EJB Container", ece); 55 throw new RuntimeException (ece); 56 } 57 } 58 59 62 public void stop() { 63 getManagedComponent().stop(); 64 } 65 66 67 } 68 | Popular Tags |