Chapter 16. EJB 3 and Spring

 

This chapter covers

  • Spring-enabled session beans
  • Injecting session beans into Spring POJOs
  • Using JPA with Spring

When the EJB portion of J2EE first came along, the industry flocked toward it. Imagine, an industry-wide specification for building distributed applications with layers and tiers and business logic! Prior to EJB 1’s attempt to do this, developers were constantly wrestling with two options, neither of which was ideal: use a proprietary vendor product or write your own. Both amounted to the same option; it’s just that in the second case the development team was the vendor with the one-of-a-kind solution. No matter how you looked at the domain, it meant vendor lock-in.

16.1. Introducing the Spring framework

16.2. Using JPA with Spring

16.3. Combining the power of EJB 3 and Spring

16.4. Summary