Using the RMI Registry Browser
You use the RMI Registry Browser by right-clicking on the RMI Registry
node or its subnodes. The context menu for each type of node displays the
appropriate commands.
RMI Registry Node Commands
This node represents the RMI Module's Registry Browser.
Refresh
Refresh all of the nodes that descend from the RMI Registry node.
New Registry
Add a new registry to the node hierarchy. You can add a running registry
or create a new registry.
Properties
Display the Registry Browser's properties.
Registry Node Commands
Each of these nodes represents an RMI registry (for example, //localhost:1099/)
that is viewed in the Registry Browser.
Refresh
Refreshes all the nodes that descend from the selected node.
Delete
Deletes the selected node from the registry browser. This command terminates
only those registry processes that were started with the Registry Browser.
Properties
Displays the properties of the selected registry.
Remote Object Node Commands
These nodes represent Java objects that have been exported to an RMI registry.
A registry can contain many remote objects. For example, if you generate
an implementation class with the RMI module and run it, the instance created
by the implementation class's main method will appear as a remote
object node.
Customize Bean
Displays the customizable properties, if any, of the selected remote object.
Delete
Delete the selected object from its RMI Registry. You can only delete objects
from local registries that you control; for obvious security reasons,
you cannot delete objects from a remote RMI registry.
Properties
Display the properties of the selected Remote Object.
Remote Interface Node Commands
These nodes represent the remote interfaces that are implemented by a remote
object.
Copy Client Code
Copies lookup code for the selected remote interface to the Forte for Java
clipboard. This code returns a reference to the selected remote interface.
You can paste this code into your client source code and use the reference
to invoke methods declared by the remote interface. In general, this code
looks like the following example:
try {
interface obj = (interface) Naming.lookup ("//host:port/name")
} catch (Exception ex) {
ex.printStackTrace();
}
Save Interface
Makes a local copy of the selected interface. (Opens a dialog on which
you specify the package in which to put the copy.) This can be useful when
you need a copy of the interface for compilation.
Legal Notices