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
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.
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.