March 31, 2010 at 5:15 PM
Difference between Spring and EJB:
1)Spring is an implementation while EJB is a specification.
2)The Spring is an open source application for the Java platform whereas EJB is a server-side component that encapsulates the business logic of an application.
3) EJB can support XA or distributed transactions whereas Spring does not have support for distributed transactions, but it can plug in a JTA Transaction manager.
4) EJB uses deployment descriptor and Spring uses AOP.
5)EJB provides container-managed remote method calls whereas Spring provides proxying for remote calls via RMI, JAX-RPC, and web services.