1 28 29 package com.caucho.ejb.protocol; 30 31 import com.caucho.log.Log; 32 33 import javax.ejb.EJBObject ; 34 import javax.ejb.Handle ; 35 import java.util.logging.Level ; 36 import java.util.logging.Logger ; 37 38 48 abstract public class AbstractHandle implements Handle { 49 protected static final Logger log = Log.open(AbstractHandle.class); 50 51 54 56 59 public abstract String getObjectId(); 60 61 64 public Class getType() 65 { 66 try { 67 EJBObject obj = getEJBObject(); 68 69 return obj.getEJBHome().getEJBMetaData().getRemoteInterfaceClass(); 70 } catch (Exception e) { 71 log.log(Level.WARNING, e.toString(), e); 72 return null; 73 } 74 } 75 76 79 abstract public String getURL(String protocol); 80 } 81 | Popular Tags |