File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJB 3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB 3 " Watch "EJB 3 " New topic


Gyanesh Sharma
Ranch Hand

Joined: Nov 27, 2005
Posts: 47
I know J2SE and web components of J2EE but I am totally new to EJB. After my initial research, I am confused if I should jump on to EJB 3 directly or if I should learn the previous versions of EJB first.

I am not doing any big project. My learning would involve doing the web tutorials using JBoss/Eclipse.

Please advice. Also any useful link on the basics of EJB would be great. If someone can tell me, I would like to know how Hibernate fits into the EJB specification.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33130

It depends on when you are looking to get a job. If it is anytime soon, you will benefit from learning about EJB 2.1 first.

Hibernate is an open source product for Object/Relational mapping. Many of the ideas in EJB 3 came from Hibernate.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Gyanesh Sharma
Ranch Hand

Joined: Nov 27, 2005
Posts: 47
Thanks Jeanne
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Gyanesh, while EJB3 will allow it to be easier to create, it is still really important to learn things from EJB 2.x because you will better understand what you get from the App Server, Transaction levels, Lookups, and understand the lifecycle of EJBs. I highly suggest getting "Head First EJB"

Then you will be able to appreciate the benefits of EJB3 and also to be able to complain about the lack of control you have with EJB3, and later the back-end extra work that you will need to do with EJB3, which you didn't hvae to do in EJB2.1 if you want to do something a little above and beyond normal uses.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Gyanesh Sharma
Ranch Hand

Joined: Nov 27, 2005
Posts: 47
That is really helpful Mike.
I agree. Here's the link:
subject: EJB 3
It's not a secret anymore!