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 Usefulness of 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 "Usefulness of EJB 3" Watch "Usefulness of EJB 3" New topic

Usefulness of EJB 3

Ralph Ching

Joined: Jul 18, 2006
Posts: 15

Hi all,

When should EJB 3 be used? I mean in what context or situations? High volume applications? Financial Services?
Personally, i haven't seen or coded an EJB project aside from the terribly implemented EJB 2 e-commerce application that i have tested in my previous company.

I am trying to gather all info I can for EJB's cause i want to take the SCBCD 5.0 exam, but i really cannot see its use or its market value when you have simpler alternatives in implementing business objects like what other frameworks (spring, rails, grails, jruby) has shown.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

Spring is the only one you listed that is a direct competitor to EJB. The traditional reasons for using EJB are security/transactions/remoting/etc. Which are now all supported by Spring. EJB does provide benefits if you need failover or to decouple the web layer from ejb layer by server. I haven't dived into Spring enough to know - maybe this is possible now too. In any case, they are features that are rarely used.

[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
Om Tejas

Joined: Dec 02, 2009
Posts: 27
other advantage of ejb3 is ease of development. With ejb3, you don't have to manage too many deployment descriptors files. However, the latest trend is that organizations are moving towards spring framework because with ejb development there is a the cost involved in licensing issues for hosting ejbs applications.
The architecture is moving towards managing many small tomcat server hosting spring framework along with http server.
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

"Unbounded passion"

Please click on the "My Private Messages" link on top of this page, for a message from JavaRanch.

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: Usefulness of EJB 3
jQuery in Action, 3rd edition