EJB – How does it work?

Posted: December 8, 2009 in Java

EJB runs under the control of the EJB Server and the server does virtually everything ranging from managing transactions, security, persistence and even the life n death of our beans.

  1. Client ( – a standalone Java App, another EJB or a servlet) calls the EJB method.
  2. This call is intercepted by the EJB Object as the client can never talk directly talk with the bean
  3. The call is then passed to the EJB server which does everything ranging from transaction to security.
  4. The container then instantiates a bean object from the bean pool and handles the request.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s