Two Laptop Bag
The moose likes EJB and other Java EE Technologies and the fly likes skeletons -stubs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "skeletons -stubs" Watch "skeletons -stubs" New topic

skeletons -stubs


Joined: Jun 11, 2001
Posts: 8
whar are skeletons and stubs in EJB.
What is Reflection in Java.
umar hathab
Ranch Hand

Joined: Aug 20, 2001
Posts: 52
Stubs are server program in the client side.It contains information about the location of the program or object and also contains network information.Clients normally contact stub.
Skelton are server program in the server side.Skelton wraps the object.It knows about all the methods of an object.It will redirect the request from stub and returns the necessary information.
Hope this may clear yr doubt.

Sun Certified Java Programmer for Java 2.0 (93%) <p>----Winners always make the learning a habit
Phil Sharp
Ranch Hand

Joined: Nov 08, 2001
Posts: 40
Skeletons (server side) and Stubs (client side) are classes that enable the remote communication between client and server.
They are automatically generated by your ejb deployment tool (or rmic for rmi). You need not worry about them (apart from that they exist) as they are not part of a developers responsibility; they are produced by a vendor tool from the EJBs you create.
Reflection is the ability within Java to gain information\manipulate classes at runtime. You need not know what the classes are at compile time. Based around the java.lang.reflect package. Review the api for further info.
Reflection can be a very powerful mechanism but has performance issues plus it can be dangerous as loosing compile time checking.

I agree. Here's the link:
subject: skeletons -stubs
It's not a secret anymore!