1 28 29 30 package com.caucho.management.j2ee; 31 32 import com.caucho.ejb.cfg.EjbBean; 33 34 import javax.management.MalformedObjectNameException ; 35 import javax.management.ObjectName ; 36 import java.util.Hashtable ; 37 38 41 abstract public class EJB 42 extends J2EEManagedObject 43 { 44 private final EjbBean _ejbBean; 45 46 public EJB(EjbBean ejbBean) 47 { 48 _ejbBean = ejbBean; 49 } 50 51 protected ObjectName createObjectName(Hashtable <String , String > properties) 52 throws MalformedObjectNameException 53 { 54 properties.put("EJBModule", quote(_ejbBean.getEJBModuleName())); 55 56 return super.createObjectName(properties); 57 } 58 59 protected String getName() 60 { 61 return _ejbBean.getEJBName(); 62 } 63 } 64 | Popular Tags |