aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes How to test that the stub class is really used? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "How to test that the stub class is really used?" Watch "How to test that the stub class is really used?" New topic
Author

How to test that the stub class is really used?

Mika Tapanainen
Ranch Hand

Joined: Jun 11, 2009
Posts: 93
Hello,

The application has to use the generated stub class. I have generated the DataImpl_Stub.class, but how can I be sure that the application uses it? I'm afraid that it is still possible that
the application uses dynamic class downloading?

I have tested this by deleting the file and then using the jvm parameter -Djava.rmi.server.ignoreStubClasses=false. Everything still works fine. But I'm not sure can the jvm parameter get the value false.

Any ideas,

Thanks,

Mika


SCJP, SCJD, SCEA
http://fi.linkedin.com/in/mikatapanainen
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2247

Howdy, Mika!

Please take a look here. I think it might be helpful!


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Mika Tapanainen
Ranch Hand

Joined: Jun 11, 2009
Posts: 93
Thanks!

I have to read the discussion.

Mika
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to test that the stub class is really used?
 
Similar Threads
B&S 2.2.2 : 388/400 !!!!
where's the "sharpen your pencil" answer?
some java interview Questions
Trying to Understand Java and JRE
advice/question regarding server side wsdl stubs