<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.rmi.server.UnicastRemoteObject
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.server.html">This Package</a>  <a href="java.rmi.server.UID.html#_top_">Previous</a>  <a href="Package-java.rmi.server.html">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.rmi.server.UnicastRemoteObject
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.rmi.server.RemoteObject.html#_top_">java.rmi.server.RemoteObject</a>
           |
           +----<a href="java.rmi.server.RemoteServer.html#_top_">java.rmi.server.RemoteServer</a>
                   |
                   +----java.rmi.server.UnicastRemoteObject
</pre>
<hr>
<dl>
  <dt> public class <b>UnicastRemoteObject</b>
  <dt> extends <a href="java.rmi.server.RemoteServer.html#_top_">RemoteServer</a>
</dl>
The UnicastRemoteObject class defines a non-replicated remote
 object whose references are valid only while the server process is
 alive.  The UnicastRemoteObject class provides support for
 point-to-point active object references (invocations, parameters,
 and results) using TCP streams.  <p>
 Objects that require remote behavior should extend RemoteObject,
 typically via UnicastRemoteObject. If UnicastRemoteObject is not
 extended, the implementation class must then assume the
 responsibility for the correct semantics of the hashCode, equals,
 and toString methods inherited from the Object class, so that they
 behave appropriately for remote objects.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#UnicastRemoteObject()"><b>UnicastRemoteObject</b></a>()
  <dd>  Create and export a new UnicastRemoteObject object using an
 anonymous port.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#clone()"><b>clone</b></a>()
  <dd>  Returns a clone of the remote object that is distinct from
 the original.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#exportObject(java.rmi.Remote)"><b>exportObject</b></a>(Remote)
  <dd> 
 Export the remote object to make it available to receive incoming calls.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="UnicastRemoteObject"></a>
<a name="UnicastRemoteObject()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>UnicastRemoteObject</b>
<pre>
 protected UnicastRemoteObject() throws <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>
</pre>
<dl>
  <dd> Create and export a new UnicastRemoteObject object using an
 anonymous port.
<p>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="clone()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="clone"><b>clone</b></a>
<pre>
 public <a href="java.lang.Object.html#_top_">Object</a> clone() throws <a href="java.lang.CloneNotSupportedException.html#_top_">CloneNotSupportedException</a>
</pre>
<dl>
  <dd> Returns a clone of the remote object that is distinct from
 the original.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the new remote object
    <dt> <b>Throws:</b> <a href="java.lang.CloneNotSupportedException.html#_top_">CloneNotSupportedException</a>
    <dd> if clone failed due to
 a RemoteException.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#clone()">clone</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="exportObject(java.rmi.Remote)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="exportObject"><b>exportObject</b></a>
<pre>
 public static <a href="java.rmi.server.RemoteStub.html#_top_">RemoteStub</a> exportObject(<a href="java.rmi.Remote.html#_top_">Remote</a> obj) throws <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>
</pre>
<dl>
  <dd> Export the remote object to make it available to receive incoming calls.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> obj - the remote object to be exported
    <dt> <b>Throws:</b> <a href="java.rmi.RemoteException.html#_top_">RemoteException</a>
    <dd> if export fails
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.server.html">This Package</a>  <a href="java.rmi.server.UID.html#_top_">Previous</a>  <a href="Package-java.rmi.server.html">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
