• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Koskela!!!
 
So there I was, trapped in the jungle. And at the last minute, I was saved by this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic