aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI, stub and skeleton locations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI, stub and skeleton locations" Watch "RMI, stub and skeleton locations" New topic
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: 2246

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: 4908
    
  10

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI, stub and skeleton locations
 
Similar Threads
RMI things to be done
Must I use rmic when I'm choosing RMI
RMIC
Strange RMI - Error
rmic tool needed?