Generating a Server-side File (Implementation)
You can generate a server-side file that contains an implemenation
based on a new or existing remote interface using the RMI templates.
To generate a server-side file:
- From the main window, choose File
New.
- In the New Wizard window, expand the RMI node and select the RMI object
you want to create:
- An RMI base class: Activatable, RMIIIOP, or UnicastRemoteRemoteObject.
- An implementation class that does not extend a base class,
ClearImplementation.
Click Next to continue.
- Choose to create either a new remote interface or an
existing remote interface:
- New Interface: Type a name for the interface and select a template
(None, Hello, or Remote) to use for the interface and click Next.
- Existing Interface: Click the Use an Existing Remote Interface
radio button and type the name of the remote interface to use. Click
the ellipsis (...) button to browse the filesystem for the interface
you want. Click Next to continue.
- Click Add to add one or more remote methods to the server
file. Use the Edit button to modify a selected method and click the Up
and Down buttons as needed to adjust the method hierarchy. Click Next
to continue.
- Type the name of the implementation file or use the default name
provided and click Finish.
A node for the file appears in the Filesystem tabbed pane.
The default name of the implementation class is based on the
name of your remote interface, in the form
interfaceNameImpl
. The IDE declares your
implementation class as an implementation of the interface and
generates method bodies for methods declared in the
interface.
Legal Notices