1 28 29 package com.caucho.ejb.protocol; 30 31 import com.caucho.ejb.AbstractServer; 32 import com.caucho.naming.ObjectProxy; 33 34 import javax.naming.NamingException ; 35 import java.util.Hashtable ; 36 37 40 public class JVMRemoteHomeProxy implements ObjectProxy, java.io.Serializable { 41 protected AbstractServer _server; 43 44 49 public JVMRemoteHomeProxy(AbstractServer server) 50 throws NamingException 51 { 52 _server = server; 53 } 54 55 62 public Object createObject(Hashtable env) 63 throws NamingException 64 { 65 try { 66 return _server.getEJBHome(); 67 } catch (java.rmi.RemoteException e) { 68 throw new RuntimeException (e); 69 } 70 } 71 } 72 | Popular Tags |