Java Reference
In-Depth Information
Note that some authors choose to combine the implementation and server into one
class. This author, however, feels that the separation of the two probably results in a
clearer delineation of responsibilities.
The method required for running the above application is provided in the next section.
Compilation and Execution
There are several steps that need to be carried out, as described below.
1. Compile all fi les with javac.
This is straightforward…
[Note that, before Java SE 5, it was necessary to compile the implementation class
(yes, compile a .class fi le!) with the rmic compiler thus:
rmic HelloImpl
This would generate both a stub fi le and a skeleton fi le. However, this stage is no
longer required.]
2. Start the RMI registry.
Enter the following command:
When this is executed, the only indication that anything has happened is a change in
the command window's title. For the author's Java implementation, the change is as
shown in Fig. 5.2 .
Search WWH ::

Custom Search