GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes EJB3.x or 2.x? 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 "EJB3.x or 2.x?" Watch "EJB3.x or 2.x?" New topic
Author

EJB3.x or 2.x?

Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 433
I'm new to EJB. The product I'm working on uses EJB2.x. And the Head First EJB reads great, but it's about EJB2.x. The EJB3.x seems change a lot. I can't find the bodyguard(EJBObject) any more! My questions are:

1. How many products are upgraded to EJB3.x? Will EJB3.x replace 2.x soon?
2. Which exam to take? It's a little different from SCJP. It changes too much.
3. Why does Sun change EJB a lot? Is EJB2.x proved a bad practice?

Thanks.


To be or not to be. It's a question.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30586
    
154

1) I don't know the exact number, so I will say "some". For example, JBoss is upgraded while WebSphere is not.
2) It depends on your goals.
3) EJB 2.X is a lot more complicated than it needs to be. It's not bad practice per se in that the same thing happens behind the scenes. However EJB 3 abstracts much more.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

WebSphere 6.1 does provide a feature pack that allows you to do EJB 3.0 deployment, so they sorta support it.

-Cameron McKenzie
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2057
While ejb2 was frowned upon by a lot of decision makers (people who choose which technology they will buy/use), put at the end of the list, where spring/hibernate is on a higher preference, there is now no reason not to use the full JEE.

The only reason you will need to learn EJB 2.X is if you 'might' need to maintain existing, or at a lower possibility, create new, EJB 2 applications. E.g. if you are a developer who works in a team who is in the process of starting to convert ejb 2 to ejb 3 applications.

And for the same reason, maybe a few still use EJB 1.X.
[ November 06, 2007: Message edited by: Jesus Angeles ]
 
GeeCON Prague 2014
 
subject: EJB3.x or 2.x?