1 28 29 package com.caucho.ejb.protocol; 30 31 import javax.ejb.Handle ; 32 import java.io.ObjectStreamException ; 33 import java.io.Serializable ; 34 35 38 public class ObjectSkeletonWrapper implements Serializable { 39 protected Handle handle; 40 41 44 public ObjectSkeletonWrapper() 45 { 46 } 47 48 51 public ObjectSkeletonWrapper(Handle handle) 52 { 53 this.handle = handle; 54 } 55 56 public Handle getHandle() 57 { 58 return this.handle; 59 } 60 61 64 public Object readResolve() 65 throws ObjectStreamException 66 { 67 try { 68 Object obj = this.handle.getEJBObject(); 69 return obj; 70 } catch (Exception e) { 71 throw new ObjectExceptionWrapper(e); 72 } 73 } 74 } 75 76 77 | Popular Tags |