This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

skeletons -stubs

 
rasika
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whar are skeletons and stubs in EJB.
What is Reflection in Java.
 
umar hathab
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Phil Sharp
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic