src/share/classes/java/rmi/registry/LocateRegistry.java

Print this page

        

*** 185,195 **** /** * Creates and exports a <code>Registry</code> instance on the local * host that accepts requests on the specified <code>port</code>. * * <p>The <code>Registry</code> instance is exported as if the static ! * {@link UnicastRemoteObject.exportObject(Remote,int) * UnicastRemoteObject.exportObject} method is invoked, passing the * <code>Registry</code> instance and the specified <code>port</code> as * arguments, except that the <code>Registry</code> instance is * exported with a well-known object identifier, an {@link ObjID} * instance constructed with the value {@link ObjID#REGISTRY_ID}. --- 185,195 ---- /** * Creates and exports a <code>Registry</code> instance on the local * host that accepts requests on the specified <code>port</code>. * * <p>The <code>Registry</code> instance is exported as if the static ! * {@link UnicastRemoteObject#exportObject(Remote,int) * UnicastRemoteObject.exportObject} method is invoked, passing the * <code>Registry</code> instance and the specified <code>port</code> as * arguments, except that the <code>Registry</code> instance is * exported with a well-known object identifier, an {@link ObjID} * instance constructed with the value {@link ObjID#REGISTRY_ID}.
*** 211,221 **** * <code>ServerSocket</code> created from the supplied * <code>RMIServerSocketFactory</code>. * * <p>The <code>Registry</code> instance is exported as if * the static {@link ! * UnicastRemoteObject.exportObject(Remote,int,RMIClientSocketFactory,RMIServerSocketFactory) * UnicastRemoteObject.exportObject} method is invoked, passing the * <code>Registry</code> instance, the specified <code>port</code>, the * specified <code>RMIClientSocketFactory</code>, and the specified * <code>RMIServerSocketFactory</code> as arguments, except that the * <code>Registry</code> instance is exported with a well-known object --- 211,221 ---- * <code>ServerSocket</code> created from the supplied * <code>RMIServerSocketFactory</code>. * * <p>The <code>Registry</code> instance is exported as if * the static {@link ! * UnicastRemoteObject#exportObject(Remote,int,RMIClientSocketFactory,RMIServerSocketFactory) * UnicastRemoteObject.exportObject} method is invoked, passing the * <code>Registry</code> instance, the specified <code>port</code>, the * specified <code>RMIClientSocketFactory</code>, and the specified * <code>RMIServerSocketFactory</code> as arguments, except that the * <code>Registry</code> instance is exported with a well-known object