aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EJB object and Skeleton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EJB object and Skeleton" Watch "EJB object and Skeleton" New topic
Author

EJB object and Skeleton

vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
hi all
Well i m confused .I have read skeletons in almost every EJB book/refrence .Whether EJB objects and skeletons are two different entities or are same.if they are altogether different entities...
Let me know why do we our EJB object(cotainer specific object) implements rmi.remote interface,when a call is delegated from skeleton itself(which implements remote interface) to EJB object. Implementing remote interface makes any object network enabled. So when skeletons are there for every EJB object and they delegate the method call to ejb object .wotz the fun of making ejb object as network enabled?


Thanks
Vikas Sharma
SCJP(1.4)
Arun Shanmugham
Greenhorn

Joined: Oct 06, 2003
Posts: 15
Hi,
As long as i know , defeinitely the object and skeleton are two different object, whether u take the case of EJB or simple RMI objects. Skeleton and stub are created by the EJB container for communicating with actuall object along the Network. We are implementing remote interface to enable the EJB object to communicate remotely with the client.
Cheers
Arun


Technical Architect (SCJP)
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Please see detail in Chapter 2 EJB Fundamentals of Mastering EJB second edition.
I think it useful for this question.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
Originally posted by Arun Shanmugham:
When we have skeletons which delegate calls to ejb object.It means skeletons are surrogate to ejb object. They do have copy of methods to be delegated to ejb object. why do ejb objects are network enabled?
Hi,
We are implementing remote interface to enable the EJB object to communicate remotely with the client.
Cheers
Arun
Arun Shanmugham
Greenhorn

Joined: Oct 06, 2003
Posts: 15
Hi Sharma,
I mean we are not implementing remote interface on EJB Object. We are just implementing SessionBean or EntityBean on EJB Iobject. But we are extending EJBObject interface (which is derived from java.rmi.Remote) only on the remote interface which is going to form stub on clientside and skeleton on server side. And anyway that task is handled by the container. But it can indirectly give response to remote clients through Remote Interface which makes them look like network enabled.
Cheers
Arun
vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
Thatz ok Arun...as per concept of creating remote interface(application specific) is concernd.
So we extend rmi.remote interface to our application specific remote interface for creating stubs and skeletons i.e to provide surrogates for container specific ejb object.
Can we say to have reference of this ejb object at client side ,we(container) makes it network enabled?
Can we conclude it by saying this. OR
Originally posted by Arun Shanmugham:
Hi Sharma,
We are just implementing SessionBean or EntityBean on EJB Iobject. But we are extending EJBObject interface (which is derived from java.rmi.Remote) only on the remote interface which is going to form stub on clientside and skeleton on server side. And anyway that task is handled by the container. But it can indirectly give response to remote clients through Remote Interface which makes them look like network enabled.
Cheers
Arun
Arun Shanmugham
Greenhorn

Joined: Oct 06, 2003
Posts: 15
Hi Sharma,
Yes, exactly.. i guess we can conclude by saying that.
Arun
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1066
This is a good basic question, helps in understanding the difference
between client stub, server skeleton, EJB Object and the bean instance.
A nice one guys..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB object and Skeleton