• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI, stub and skeleton locations

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic