The moose likes EJB and other Java EE Technologies and the fly likes when EJB 3.0 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 "when EJB 3.0" Watch "when EJB 3.0" New topic

when EJB 3.0

manu chaox
Ranch Hand

Joined: Apr 10, 2006
Posts: 110
In what are benefits EJB 3.0 compared to Spring 2.0? Where would you prefer EJB 3.0 before Spring 2.0?
(I have never used EJB 3.0.)

Thanks to advanced
Chandra Sekar
Ranch Hand

Joined: Apr 12, 2006
Posts: 94
Coming from a Spring + Hibernate background, I found EJB 3.0 to be much simpler to develop and deploy similar applications. It needs very very little XML (only persistence.xml). Though Spring does have annotations now, it still needs a bit of XML.

Additionally, I find not having to bundle a container, ORM framework, logging framework, collections framework, bytecode manipulation framework with all my apps nice.

aleem khan
Ranch Hand

Joined: Aug 07, 2008
Posts: 94
Using EJB3.0 is very simple. If you using Jboss as application server then you dont require even database.
It has built in database called (Hypersonic database). So you can have everything
JSP/SERVLETs, EJB(session, stateless,Entity), inbuilt ORM concepts with all database concepts (creating database,update database etc) and generate .ear file
and deploy on jboss. So you have everything what you need (ofcourse JVM, java compiler also required )

SCJP(1.4), SCWCD, Oracle 9i SQL certified, Oracle PLSQL Developer Certified Associate
Reza Rahman
Ranch Hand

Joined: Feb 01, 2005
Posts: 580

Kindly look through some recent posts. I have addressed this very question on a few threads, including references comparing the two technologies.

Best regards,

Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
I agree. Here's the link:
subject: when EJB 3.0
It's not a secret anymore!