Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

a question on relation b/w remote interface & bean class  RSS feed

 
pradeep arum
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am new to EJB ,just started studying (3rd day)& i have a question?

In what way is the container generated class(the class that implements the remote interface) related to the bean class,I did not understand that when in the client ,by using JNDI(lookup() method) we generate the home interface object and call the create() method to generate a container genarated class object ie that implements the remote interface ,and invoke methods on the the container genarated class object .....the bean class methods are called....for that there should be some relationship b/w the container genarated class(any inheritance ) & the bean class�what is that?
let me consolidate the whole thing!!!
how are methods from the bean class being called when i use the object of
a class that implements remote interface?
thanks
Pradeep
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on the specific implementation. Some vendors might implement the EJB class by extending the bean provider's class while some might implement it by delegating to the bean provider's class. Some might even do some bytecode modification of the bean provider's class itself.
 
pradeep arum
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Koskela!!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!