• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

RMI force use of stub classes

 
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
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • 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
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • 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: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • 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.
 
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.
 
The fastest and most reliable components of any system are those that are not there. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic