As far as books go, there are a number on the market. You will notice most, highly rated books deal with either web development, or EJB development, but not both. J2EE is a big topic, and when books try to cover all of J2EE, they sometimes leave readers feeling either overwhelmed, or underwhelmed.
I've heard good things about J2EE: The Big Picture:
But if you are new to J2EE, and you want to learn how to program, there are two books you really, really need, and that's the Head First books, one on web development (Servlet and JSPs) and the other on Business Component Development (EJBs etc)