Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI, stub and skeleton locations

 
Miguel Angel Gonzalez
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Roel De Nijs
Sheriff
Posts: 9828
103
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Miguel Angel Gonzalez
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic