1 28 29 package com.caucho.ejb.protocol; 30 31 import com.caucho.log.Log; 32 import com.caucho.util.L10N; 33 34 import javax.ejb.EJBHome ; 35 import javax.ejb.HomeHandle ; 36 import java.util.logging.Level ; 37 import java.util.logging.Logger ; 38 39 42 abstract public class AbstractHomeHandle implements HomeHandle { 43 private static L10N L = new L10N(AbstractHomeHandle.class); 44 protected static final Logger log = Log.open(AbstractHomeHandle.class); 45 46 49 public Class getType() 50 { 51 try { 52 EJBHome home = getEJBHome(); 53 54 return home.getEJBMetaData().getHomeInterfaceClass(); 55 } catch (Exception e) { 56 log.log(Level.WARNING, e.toString(), e); 57 58 return null; 59 } 60 } 61 62 65 abstract public String getURL(String protocol); 66 } 67 | Popular Tags |