Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Architecture

 
Rahul JG
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the reason/inspiration/motivation behind the EJB architecture the way it is?
Define two remote interfaces, one for the life cycle methods (Home) and one for the
business methods (Remote) and a bean class that is shielded from the client.
The client accessing the home interface to get a remote reference and so on.....
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They like to talk about location transparency. From the client perspective the bean can move from one server to another and the client is not impacted. This enables horizontal scaling. This is just one reason.
A primary goal of EJBs is to allow simpler development n-tier distributed systems.
 
Byron Estes
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I concur with Rufus.
The concept is to allow the container to support services that your components can hook into. These enterprise level services (e.g. transactions, security, etc...). Sun is trying to remove "some of the complexity" by establishing a framework with certain service contracts between the EJB developer and the container.
Also, by allowing the container to control the lifecycle of the EJB's there is some opportunity to provide more with less resources (i.e. scalability).
Regards,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic