// create servant and tie
PortableRemoteObject.exportObject(remote);
Tie servantsTie = javax.rmi.CORBA.Util.getTie(remote);
// Note: at this point the Tie doesnt have a delegate inside it,
// so it is not really "exported".
// The following call does orb.connect() which is the real exporting
servantsTie.orb(orb);