This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Distributed Java and the fly likes RMI in JDK6 problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI in JDK6 problem" Watch "RMI in JDK6 problem" New topic
Author

RMI in JDK6 problem

Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
Hi,

I am trying to develop a distributed application using java RMI in jdk6. I have studied the java 6 RMI release notes at http://java.sun.com/javase/6/docs/technotes/guides/rmi/relnotes.html . In the notes it says,

An existing application can be deployed to use dynamically generated stub classes unconditionally (that is, whether or not pregenerated stub classes exist) by setting the system property java.rmi.server.ignoreStubClasses to "true". If this property is set to "true", pregenerated stub classes are never used.

which is with respect to java 6.

I have following server code which throws a StubNotFoundException if I remove the stub from the directory where it is supposed to be and I run the code by setting the java.rmi.server.ignoreStubClasses system property to true.(As explained in the notes)



The getGreeting method is in the GreetingProvider interface which extends Remote interface.
Why are the stubs not generated at runtime? Can anyone throw some light at this?

Thanks and Regards,
Suhas
http://www.xplore-java.blogspot.com/
Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
Hi Guys,

Can someone guide me please i have been waiting for this solution.. I havent still found one.

Regards,
Suhas
 
wood burning stoves
 
subject: RMI in JDK6 problem