• 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

Why Ejb Bean class not implementing the Remote Interface

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks,

it will be great if help me to get clarify my doubt.

As for java specification if we want to use the Handle ( interface as reference ) the object class should implement the Interface. How it is able to give the Remote Handle for Ejb Object without implementing the
Remote Interface by Bean class.


advance thanks ,

regards,
Lee
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The getHandle() method is invoked on the EJBObject which is associated with the bean. There is no need for the bean to be involved.
 
murali kankanala
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Roger Chung-Wee

Here my doubt is how the container is able to identify the mapping between the bean class and relavant Remote interface , here we are not at all implementing our bean class with particular Remote even though how the container is able map.


regards,
Lee
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out your ejb-jar.xml which defines the mapping of a bean type with its interfaces. A typical entry in like this.


So, the container will create a Hello EJBObject for the HelloBean instances.
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Bean class you have written is not the final class. The container will be generate a class which will extend your bean and implement the interfaces. There are other approaches as well.. As of Weblogic it follows the above said technique.

If you have weblogic and have a EJB application deployed you can see the files generated by the server
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic