Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rmi basic, why skeleton is not needed ?

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am beginner to RMI,
Why we need to place stub files generated after executing,
rmic -v1.2 BookServerSide
BookServerSide_stub.class to both client & server side ?
As i know, stub file is a representation of server side object over the
client side, to which client pass the request.
If i dont put the stub file over the server i get an exception
java.lang.ClassNotFoundException: BookServerSide_Stub
even though i agree to a point, how server will come to know client ? Why we dont generate skeleton file as in jdk1.1 ?
from ,
vikram.
 
Jerry Pulley
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Videsh,
Please read the JavaRanch policy on user names at http://www.javaranch.com/name.jsp, and register a first and last name.
Thanks,
Jerry
 
Brandon Rich
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.jguru.com/faq/view.jsp?EID=330333
This link is to a thread on jGuru about this topic. I think it was answered quite nicely.
------------------
--
Brandon Rich <brandon@trainix.com>
Trainix, Inc. - "Teaching Tomorrow, Today."
www.trainix.com
 
Heideluise Martin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem with stub and skeleton's too. My application is running, but I want to avoid stub loading from codebase, because stubs are in the client jar. This is not necessary. the jvm should load them locally.
How to replace the RMILoader ? When i replace the RMILoader so, that it doesn't annote the url for the stub , would this slove the problem, and how to do this ? Using >= JDK1.3.1 to 1.4.2 my Application runs under all this jre's. Is there good example site how to configure RMI with rmi Properties and there pro and cons. My Application makes HTTP - Tunneling.
Is there an way that the RMI - Runtime will make HTTP Tunneling without testing if it is necessary. RMI -Tunneling should be the default always in my scenario. The first request of the plugin on Port 1099 could cause large timeouts. Sometimes rejects in the firewall can't avoid large timeout's.
Ok, Skeleton's are avaibale in my Application because the server layer could be used from JDK1.1. But about now we don't use JDK1.1 any longer.
I've there was jguru and other sites get not deep enough. The sun sites don't really explain how to configure a complex real world application. The rmi Properties, and when to use some of the properties. Some properties are really clear, some not.
Thank' s. I hope someone have made the expierence to avoid these problems.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic