• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI force use of stub classes

 
Paolo Bazzi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Roel De Nijs
Sheriff
Posts: 9797
101
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Paolo Bazzi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9797
101
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 159
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic