I am gonna start learning EJB. I just need your suggestion on picking the version for learning EJB 2.0 or EJB 3.0. Is it good idea to start with EJB 2.0 and migrate to EJB 3.0? If it is, can it be easy to migrate? Actually I am holding Head First EJB book covering version 2.0. Suggest me any other good book, that I can stick to it for complete learning of EJB.
I am very grateful to you if you help me in becoming EJB Guru
I’d strongly recommend learning EJB 3.0 vs. EJB 2.0. It follows similar patterns to the popular ORM Hibernate. I don’t believe there’s much value in learning an earlier variant of EJB, when the current version follows commonly used ORM patterns and is supposed to be much simpler. From the FAQ:
Since the two versions are so different, migration is next to impossible beyond the most basic concepts. Unless you have a specific requirement such that you need to look at EJB 2.0, check out the latest variant.