RMI Wizard Java Interface Settings
To select settings for the Java Interface of the RMI Wizard, follow these steps:
1. Select SST>RMI Wizard Java Interface Settings from the menu bar in the System Transcript window.
2. Select either the JavaTypeRepository, exposed through RMI, or from VisualAge for Java running the servlet interface for the RMI wizard.
a. Select Use the RMI type repository interface to use the JavaTypeRepository. Type either the hostname or the dotted address of your rmiregistry for the server name. The default port number for an rmiregistry is 1099.
Note: If you choose this interface, you will not be able to browse for Java types.
c. Choose Test Connection to test the connection to the interface.
d. Click OK.
Note:
The RMI Wizard adds the following instance methods to all mapped classes:
sstRmiClassName -- | Answers the Java class name the receiver is mapped to. |
sstIsRmiSerializable -- | Answers true if the receiver is serializable (passed by value). |
sstIsRmiRemotable -- | Answers true if the receiver is remotable (passed by reference). |
The above methods, along with the class mapping definitions (added to the application class), are used by SST to enable instances of the class for use with RMI. There may be some cases where you want to enable the class itself (versus instances of the class) for use with RMI. For example, you might want to have a Java client send messages to a Smalltalk class. If this is the case, you'll need to add the above methods as class methods.
Last modified date: 01/29/2015