The Artima Developer Community
Sponsored Link

Java Answers Forum
EJB Stub downloading concept

1 reply on 1 page. Most recent reply: Mar 1, 2005 2:01 PM by nikhilkodilkar

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
nikhilkodilkar

Posts: 2
Nickname: knikhil
Registered: Mar, 2005

EJB Stub downloading concept Posted: Mar 1, 2005 2:00 PM
Reply to this message Reply
Advertisement
Hi All,
I have a concept question. Hope an EJB guru can help me understand this.
<BR/>
The question is about, how/when the STUB is called by the EJB-Client. With RMI, dynamic download of the Stubs was available.
<BR/>
<BR/>
Now I read that Dynamic class downloading isn't available with RMI-IIOP (Due to interoperability issues with Corba).
<BR/><BR/>
I have given my understanding below.
<BR/>
For EJB's, here are the steps taken by the EJB Client ->
<BR/><BR/>
1.) Client makes a JNDI lookup for the Home interface (Factory for getting the EJBObject Reference).<BR/>
2.) From the Home interface, I get the reference to the EJBObject (Remote Interface)<BR/>
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 ?<BR/>
4.) Now the Remote interface calls the Stub, which in turn calls the Skeleton and which calls the Actual EJBObject.<BR/><BR/>

I'm not sure about the step 4, but I think its correct to 90%. <BR/>
What I want to know is, Is the Stub different than the Remote Interface ?! <BR/>
If yes, then where did the Stub come from ?!<BR/><BR/>

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.<BR/>


nikhilkodilkar

Posts: 2
Nickname: knikhil
Registered: Mar, 2005

Re: EJB Stub downloading concept Posted: Mar 1, 2005 2:01 PM
Reply to this message Reply
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.

Flat View: This topic has 1 reply on 1 page
Topic: Drawing Graphs with GUI Previous Topic   Next Topic Topic: How to  auto generate the repository creation scripts for different databas

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use