You use the RMI Registry Browser by right-clicking the RMI Registry node or its subnodes in the Explorer window and choosing a command from the contextual menu. The contextual menu for each type of node are described below.
This node represents the RMI Registry browser.
Refresh | Refreshes all nodes that descend from the RMI Registry node. |
Reset Loader | Resets the RMI loader. Use this command to refresh the contents of the browser after you change a remote interface. |
New Registry | Adds a new registry to the node hierarchy. You can add a running registry or create a new registry. |
Properties | Displays the Registry browser's properties. |
These nodes represent an RMI registry (for example, //localhost:1099/) that you can view in the Registry Browser.
Refresh | Refreshes the nodes that descend from the selected node. |
Delete | Deletes the selected node from the Registry browser. |
Properties | Displays the properties of the selected registry. |
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 | Deletes the selected object from its RMI registry. You can only delete objects from local registries that you control. For security reasons, you cannot delete objects from a remote RMI registry. |
Properties | Displays the properties of the selected remote object. |
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 {
|
Save Interface | Makes a local copy of the selected interface. (Opens a dialog box in 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. |
See also | |
---|---|
Starting a New Local Registry
Viewing a Running Registry |