Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
master stewards:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
garden masters:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
gardeners:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

RMI in JDK6 problem

 
pioneer
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Suhas Bilaye
pioneer
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

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

Regards,
Suhas
 
I love a woman who dresses in stainless steel ... and carries tiny ads:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!