| Author |
RMI, stub and skeleton locations
|
Miguel Angel Gonzalez
Greenhorn
Joined: Aug 27, 2011
Posts: 12
|
|
Hey there
I am working on the network layer of my assignment, just finished the server and client using an RMI solution. I tested it and works fine, without need to generate the stub and skeleton with rmic, I know that them are not needed for Java 5 and earlier but I decided to don't take any risk and include them in my final solution.
So, my questions are:
- Over which classes must I execute the rmic tool (remote interface, remote implementation) ?
- Just placing the generated classes in the corresponding folders/packages is enough ?
Checking the ant script made by Roel I noticed that he is calling the rmic tool over the entire classes folder, is it enough to be covered for this "must" ? If it is, another good reason to use Roel's ant script
Thanks in advance!
|
 |
Roberto Perillo
Bartender
Joined: Dec 28, 2007
Posts: 2216
|
|
|
Champ, I didn't generate any stubs/skeletons/anything and passed without any problem. I said in my choices.txt file that, since I used Java 6, it wasn't necessary anymore. I passed without any problems.
|
Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
|
 |
Roel De Nijs
Bartender
Joined: Jul 19, 2004
Posts: 4389
|
|
Miguel Angel Gonzalez wrote:Checking the ant script made by Roel I noticed that he is calling the rmic tool over the entire classes folder, is it enough to be covered for this "must" ? If it is, another good reason to use Roel's ant script 
It's a long time ago, but that's the ant script I used myself to generate the submission jar so yes it's enough. I believe the tool just looks for implementations of the Remote interface and generate the needed classes.
And as Roberto indicated this requirement is just outdated, because it's not necessary anymore.
|
SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
|
 |
Miguel Angel Gonzalez
Greenhorn
Joined: Aug 27, 2011
Posts: 12
|
|
Thanks for your comments on this!
I am with you, I guess that it is not needed anymore to generate the stubs since we are using Java 6 so, why don't take advantage of it :P
Just as caution, I will use Roel's script and include an effusive note on my decision document about stubs on Java 6
|
 |
 |
|
|
subject: RMI, stub and skeleton locations
|
|
|