1 28 package org.objectweb.carol.jndi.wrapping; 29 30 import java.rmi.Remote ; 31 import java.rmi.RemoteException ; 32 import java.rmi.server.UnicastRemoteObject ; 33 34 import javax.naming.Reference ; 35 36 import com.sun.jndi.rmi.registry.RemoteReference; 37 38 44 public class UnicastJNDIReferenceWrapper extends UnicastRemoteObject implements Remote , RemoteReference { 45 46 49 private Reference reference; 50 51 57 public UnicastJNDIReferenceWrapper(Reference reference, int objectPort) throws RemoteException { 58 super(objectPort); 59 this.reference = reference; 60 } 61 62 67 public Reference getReference() throws RemoteException { 68 return reference; 69 } 70 } | Popular Tags |