Enterprise Java Beans (EJB)

Study for Week 8

This week we will look at implementing domain logic using Enterprise Java Beans (EJB).

Enterprise Java Beans provide a wide range of high-level services to your code: distribution, transactions, concurrency and lifecycle management.

They help you avoid the complexity of building the infrastructure for powerful systems. Instead, you can focus on the business problem and let Java EE deal with the details.

At the end of this session, you should be able to:

  • Understand the purpose of EJBs
  • Explain the features provided by the application container to an EJB
  • Differentiate between Session beans and Message Driven beans
  • Differentiate between the types of Session beans
  • Recognize the most appropriate type of session beans in different business scenarios
  • Understand the performance implications of the different beans
  • Create an EJB and apply to a business problem

Enterprise Java Beans (EJBs)

Enterprise Java Session beans

Lifecycles of session beans

I recommend reading Chapter 7 of Beginning Java EE 7: