aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI force use of stub classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI force use of stub classes" Watch "RMI force use of stub classes" New topic
Author

RMI force use of stub classes

Paolo Bazzi
Greenhorn

Joined: Jan 07, 2012
Posts: 2
Hi All,

In order to not break the must-requirement to not use any dynamically generated classes I've generated my stub class using rmic.
Now I wanted to test if this stub class is really used at runtime, but did not found any option to disable the automatic generation of the dynamic proxy stub class.

So, how did you test that your generated stub classes are really used at runtime?

greets, Paolo


SCJP 6.0 | OCMJD in progress
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5545
    
  13

Hi Paolo,

First of all: best wishes for 2012!

Secondly generating stubs is not needed anymore and many people passed without generating them, my good friend Roberto Perillo was one of the first ones to violate the must requirements and still pass the certification. If you use the search engine of this forum you'll find many threads discussing this topic (e.g. here). But if you still want to generate them, then you can read here how you can see if the generated stubs are actually used.

Hope it helps!
Kind regards,
Roel


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2267
    
    3

Howdy, Paolo. Welcome to JavaRanch and also, best wishes for 2012!

Roel De Nijs wrote:Secondly generating stubs is not needed anymore and many people passed without generating them, my good friend Roberto Perillo was one of the first ones to violate the must requirements and still pass the certification.


My good buddy Roel makes me feel like an outlaw!


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Paolo Bazzi
Greenhorn

Joined: Jan 07, 2012
Posts: 2
Hi,

Best wishes for 2012 too!

Thanks for your quick reply, I tried to find any threads about this topic but failed, thanks for the links!
Since this requirement is still a must according to my assignment I don't see any advantages to not generate the stubs... even if it's just one line to add in the build script.

cheers
Paolo
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5545
    
  13

Assignments simply are not updated accordingly to the newer JDK versions. I also didn't want to take the risk, so generated them (and mentioned it in choices.txt). But that's more than 2 years ago. In the mean time so many people passed without generating them (also having that must requirement in their assignment) that it's not needed anymore (just document this decision). But of course you're still free to do so.
Dennis Grimbergen
Ranch Hand

Joined: Nov 04, 2009
Posts: 143

I didn't like to generate them, so I used sockets

I think it's safe when you don't generate them and discuss why in your choices.txt like Roel said.


SCJP, SCWCD, SCJD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI force use of stub classes