File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes Rmi basic, why skeleton is not needed ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Rmi basic, why skeleton is not needed ?" Watch "Rmi basic, why skeleton is not needed ?" New topic

Rmi basic, why skeleton is not needed ?

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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 ,
Jerry Pulley
Ranch Hand

Joined: Sep 19, 2000
Posts: 221
Please read the JavaRanch policy on user names at, and register a first and last name.
Brandon Rich

Joined: Aug 06, 2001
Posts: 1
This link is to a thread on jGuru about this topic. I think it was answered quite nicely.
Brandon Rich <>
Trainix, Inc. - "Teaching Tomorrow, Today."

--<BR> Brandon Rich <><BR> Trainix, Inc. - "Teaching Tomorrow, Today."<BR> <A HREF="" TARGET=_blank rel="nofollow"></A>
Heideluise Martin

Joined: Aug 12, 2003
Posts: 1
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.
I agree. Here's the link:
subject: Rmi basic, why skeleton is not needed ?
It's not a secret anymore!