Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB or Spring is better for high transaction application ?  RSS feed

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring framework could be good option for a high volume, high transaction (30 millions transaction per month) application ? or which one, EJB and Spring, is better for this requirement ?

Thanks.
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edward,

This question has been addressed here in the near past, please take a look at past posts. To summarize, either is a fine option and it really depends on you.

EJB does have some specific features such as pooling, bandwidth throttling, caching, passivation, clustering, replication, load-balancing, fail-over, thread-safety, server-resource optimization, messaging and remote tier separation that are more geared towards extremely high-load systems. However, I have seen both EJB and Spring systems that have been made scalable through various mechanisms, some with more customizations/configuration that others depending on the technology chosen.

I think the choice is ultimately a matter of personal taste. Many people comment that EJB 3 is more stream-lined, very annotation driven, has a shorter learning curve and is easier to work with out of the box. Others like the more fine grained control/configuration and broad integration with standard/non-standard technologies that Spring offers. Some prefer to work with standard technologies with multiple competing implementations. Others strongly associate Spring with open source and are skeptics of the standards process.

I personally prefer an architecture integrating both EJB 3 and Spring on an as-needed basis. I have recently presented on this topic in TSSJS and the talk was very well received. You can look up the material on the web.

Hope it helps,
Reza
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!