1 23 package com.sun.enterprise.security.auth; 24 25 import com.sun.enterprise.util.*; 26 import javax.rmi.PortableRemoteObject ; 27 import javax.rmi.CORBA.Tie ; 28 import org.omg.CORBA.ORB ; 29 30 34 35 public class RemoteObject { 36 private ORB orb; 37 38 protected RemoteObject() { 39 orb = ORBManager.getORB(); 40 } 41 42 protected void exportObject(java.rmi.Remote remote) 43 throws java.rmi.RemoteException { 44 PortableRemoteObject.exportObject(remote); 46 Tie servantsTie = javax.rmi.CORBA.Util.getTie(remote); 47 48 servantsTie.orb(orb); 52 } 53 54 java.rmi.Remote getStub(java.rmi.Remote remote) 55 throws java.rmi.RemoteException { 56 return PortableRemoteObject.toStub(remote); 57 } 58 } 59 60 61 62 63 64 | Popular Tags |