• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

when EJB 3.0

 
manu chaox
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 )
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic