Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.rmi.server
Class UnicastRemoteObject

java.lang.Object
  extended by weblogic.rmi.server.RemoteObject
      extended by weblogic.rmi.server.RemoteServer
          extended by weblogic.rmi.server.UnicastRemoteObject

All Implemented Interfaces:
Cloneable, Remote

public class UnicastRemoteObject
extends RemoteServer
implements Cloneable

This class is provided strictly for compatibility with java.rmi.* package.


Method Summary
 Object clone()
          Returns a clone of the remote object that is distinct from the original.
static Remote exportObject(Remote obj)
          Exports a remote object so it is available to receive incoming calls using a server port.
static boolean unexportObject(Object obj, boolean force)
          Removes a remote object from the RMI runtime.

 

Methods inherited from class weblogic.rmi.server.RemoteServer
getClientHost, getLog, setLog

 

Methods inherited from class weblogic.rmi.server.RemoteObject
toStub

 

Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

exportObject

public static Remote exportObject(Remote obj)
                           throws RemoteException
Exports a remote object so it is available to receive incoming calls using a server port.
Parameters:
obj - the remote object to be exported.
Returns:
the remote object stub.
Throws:
RemoteException - if the export fails.

unexportObject

public static boolean unexportObject(Object obj,
                                     boolean force)
                              throws NoSuchObjectException
Removes a remote object from the RMI runtime.
Parameters:
obj - the remote object to be removed.
force - if true, removes the object even if there are pending or in-progress calls; if false, removes the object if there are no pending or in-progress calls.
Returns:
true if operation is successful.
Throws:
NoSuchObjectException - if the remote object is not exported.

clone

public Object clone()
             throws CloneNotSupportedException
Returns a clone of the remote object that is distinct from the original.
Overrides:
clone in class Object
Returns:
the new remote object.
Throws:
CloneNotSupportedException - if the clone failed due to a RemoteException.

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09