Articles

Advantages of spring over ejb

Advantages of spring over ejb


Spring framework comparision with EJB is obvious.

Its a known fact that spring framework was developed as an alternative to heavier weight java EE application like EJB.

 

So there must be certain limitation or challenges that were taken care by spring framework. We will be learning about those advantages of spring over ejb here in this spring interview questions. Thus we will also learn how spring is beneficial over ejb.

 

Spring is lighter and leaner programming model than that of EJB. Thus creation of Spring helped overcome EJBs heavy-weight container.

Spring also empowers plain old java objects (POJOs) with powers previously available only with EJB and other Enterprise applications.

Spring is exploring areas where JEE has just started exploring. Mobile development, social API Integration, NoSQL databases, cloud computing and big data are few of those areas.

 

Spring offers minimally invasive development with POJOs. Those who have already worked on java development with frameworks like EJB they will be aware that they lock you to extend one of their classes or implement one of their interfaces. The easy target example of such an invasive programming model was EJB-2era stateless session beans. Spring never forces developers to implement a Spring-specific interface or extend a Spring-specific class which EJB does.

 

The latest versions of Enterprise Java Beans (EJB) borrow heavily from Spring's dependency injection and use of POJOs while spring has been popular due to these features from very beginning. Thus spring enjoyed advantage over EJB based on DI from starting.

 

Advantage of Spring over EJB at glance

  • Spring offers lighter and leaner programming model when compared with EJB heavy-weight container.
  • Spring is a complete framework while EJB is just a specification.
  • Spring is aleady exploring areas like Mobile development, social API Integration, NoSQL databases, cloud computing and big data where EJB has simply started or still not started.
  • Spring enforces minimally invasive development with help of POJOs.
  • The latest versions of Enterprise Java Beans (EJB) borrow heavily from Spring's dependency injection and use of POJOs.

Thus we can see the benefits that spring has over EJB.


Spring Interview Questions

Would you like to see your article here on tutorialsinhand. Join Write4Us program by tutorialsinhand.com

About the Author
Sonu Pandit
Technology geek, loves to write and share knowledge with the world. Having 10+ years of IT experience. B.Tech in Computer Science & Engineering
Page Views :    Published Date : Jul 05,2020  
Please Share this page

Related Articles

Like every other website we use cookies. By using our site you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Learn more Got it!