|
Re: EJB Stub downloading concept
|
Posted: Mar 1, 2005 2:01 PM
|
|
Seems the HTML tags are not required, Here is the post, without that crap -
Hi All, I have a concept question. Hope an EJB guru can help me understand this. The question is about, how/when the STUB is called by the EJB-Client. With RMI, dynamic download of the Stubs was available.
Now I read that Dynamic class downloading isn't available with RMI-IIOP (Due to interoperability issues with Corba).
I have given my understanding below. For EJB's, here are the steps taken by the EJB Client ->
1.) Client makes a JNDI lookup for the Home interface (Factory for getting the EJBObject Reference). 2.) From the Home interface, I get the reference to the EJBObject (Remote Interface) 3.) Client does a Object Narrow on the EJBObject Reference (** Wasn't this Remote Object aka. EJBObject Reference the downloaded class ?????) Or its just an Object that is returned as a part of the marshall magic ? 4.) Now the Remote interface calls the Stub, which in turn calls the Skeleton and which calls the Actual EJBObject.
I'm not sure about the step 4, but I think its correct to 90%. What I want to know is, Is the Stub different than the Remote Interface ?! If yes, then where did the Stub come from ?!
I'd be grateful if someone can provide some insight into these concepts or if someone can provide a link to some under the hood article. Any pointers/answers are welcome. Thanks.
|
|