1 25 26 package org.objectweb.jonas_ejb.container; 27 28 import java.io.Serializable ; 29 import java.rmi.RemoteException ; 30 31 import javax.ejb.EJBObject ; 32 import javax.ejb.Handle ; 33 import javax.ejb.HomeHandle ; 34 35 import org.objectweb.util.monolog.api.BasicLevel; 36 37 42 public abstract class JEntityHandle implements Handle , Serializable { 43 44 47 protected HomeHandle homehandle = null; 48 49 52 protected Serializable pk = null; 53 54 58 public JEntityHandle(JEntityRemote remote) { 59 try { 60 homehandle = remote.getEJBHome().getHomeHandle(); 61 } catch (RemoteException e) { 62 TraceEjb.logger.log(BasicLevel.ERROR, "cannot get HomeHandle: ", e); 63 } 64 } 65 66 72 public abstract EJBObject getEJBObject() throws RemoteException ; 73 74 77 public java.lang.Object getPK() { 78 return pk; 79 } 80 } 81 82 | Popular Tags |