• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB3 or Spring

 
Kiran Srinivasa
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We are currently debating on whether to use EJB3 or Spring in our application. From what I see Spring has an edge in that it provides a light weight framework which has the following advantages
1) Allows to make any POJO transaction-aware using AOP.
2) Persistence : Provides support to different ORM's. Also wraps JDBC API to make it more usable and eliminates boiler-plate code.
3) IOC and Dependency injection provides advantages in promoting a clean way of configuring dependencies and also to promote the 'implement to interface' paradigm.

Sounds like Spring is the next best thing to sliced bread but I am genuinely interested to know what factors would make EJB3 a more attractive proposition as compared to Spring.

Any help would be greatly appreciated.

Regards
Kiran
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
408
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kiran Srinivasa wrote: but I am genuinely interested to know what factors would make EJB3 a more attractive proposition as compared to Spring.

You want to take advantage of the services provided by your application server. Some servers provide a lot of extensions.
 
arulk pillai
Author
Ranch Hand
Posts: 3401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use both. They both compliment each other.

You also need to consider the

-- skill levels of your development team in these technologies.
-- remote access is required or not
-- etc


http://stackoverflow.com/questions/68527/should-i-use-ejb3-or-spring-for-my-business-layer


Build a vertical slice as a proof of concept.
 
Kiran Srinivasa
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arul, Jeanne,

Thanks a lot for your replies. I have the necessary information to make a considered decision.

Regards
Kiran
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!