I’ve been reading this book: Beginning EJB 3 Application Development: From Novice to Professional (Beginning: from Novice to Professional) which uses Glassfish as it’s primary JEE application server.
Here’s a quick setup tutorial for using Glassfish with Eclipse and developing EJB3:
www.webagesolutions.com/knowledgebase/javakb/jkb005/index.html
If you’re using Jboss, here’s a recommended starter project for eclipse:
wiki.jboss.org/wiki/Wiki.jsp?page=StarterSkeletonEclipseProject