This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "when EJB 3.0" Watch "when EJB 3.0" New topic
Author

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.


Chandru
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
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Manu,

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

Best regards,
Reza


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
 
 
subject: when EJB 3.0