|
RMI-based distributed Application
[note: click the icon in AnyJ's file tree to open a html file in the editor]
Compiling and Running the Application:
- Choose 'Workspace | Build All Workspace Files'
- Run rmic to generate stubs for your server side classes. ('Workspace | Run RMIC' menu)
- Start the RMIRegistry using 'Tools | External Tools | rmiregistry'. This has to be done once, even if you change and
recompile your application.
- Choose 'Run | Run Class | RunBoth' to execute both, the server and the client in one single VM (eases debugging).
Note:
- At deployment time, run the Server/Client standalone. You'll have to specify the server machines name or IP as first argument.
- To add additional remote (serverside) classes, add their .class files in Preferences, RMI. Then choose 'Run RMIC' from the
'Workspace' menu.
|