Spring vs EJB
Back then, in pre 2006, Spring Framework was introduced as a lighter and definitely easier to work with alternative to EJB.
Since then – both alternatives have grown up, learning from each other in the process. EJB, with its current 3.2 version, is quite easy to use, still providing rich feature set which is expected to be implemented on application servers.
On the other hand, Spring Framework doesn’t require huge amount of xml anymore, yet it’s keeping its modularity.