Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

unable to figure out

Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In our project we are making use of EJB 2.1.
I know that a Stateless Session Bean has three files:
*) Component interface - Used to declare our business methods.
*) Home interface - Used to declare life cycle methods.
*) Implementation class - Consists of implementation of life cycle methods as well as the Business methods.

So when we invoke a business method using the Component interface reference object, the business method of the Implementation class will be called. MY DOUBT IS THAT - HOW IS THIS HAPPENING?? AS THE IMPLEMENTATION CLASS IS NOT IMPLEMENTING THE COMPONENT INTERFACE. !!!
I was told that the Container will look after all these things internally. But i want to know- how the container is performing this task??? Can anybody help me in this regard

Thanks in advance
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is all handled magically by code in the application server. If you want to learn more, I suggest that you download the source code for JBoss and start studying. Good luck!
I want my playground back. Here, I'll give you this tiny ad for it:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic