whar are skeletons and stubs in EJB. What is Reflection in Java.
Joined: Aug 20, 2001
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. A.umar
Sun Certified Java Programmer for Java 2.0 (93%) <p>----Winners always make the learning a habit
Joined: Nov 08, 2001
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. Phil