Learning and Learning!-- Java all the way!
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Moores wrote:+1 for Tomcat.
While I, too, would advise not to jump into EJBs unless you have to, learning Spring is not necessarily the best alternative. It depends on what you want to do - if you're interested in persistence, then the JPA API would be a better start.
Tim Holloway wrote:Spring and EJB are not mutually exclusive. Spring is a bean management and wiring framework that includes various extensions designed to make common architectural designs much easier.
EJB is an ORM persistence mechanism. EJB3 and JPA are, for most practical purposes the same thing, since JPA is part of the EBJ3 spec. Tomcat's main lack compared to more ambitious app servers such as JBoss and WebSphere is that it doesn't have built-in EJB support, but JPA works quite well in Tomcat.
Ravisankar Sivasubramaniam wrote:After mastering JSP / Servlet, I want to learn web services and REST services. Keeping aside EJB, what are the alternatives to spring?