Difference between EJB and Spring || What is EJB and Spring?

Difference between EJB and Spring

What is Enterprise Java Beans (EJB) ?
EJB stand for Enterprise Java Beans. It is a server side software component that summarizes business logic of an application. An EJB container provides the run time environment for web related software elements including computer reliability, Java Servlet Lifecycle (JSL) management, transaction procedure and other web services. To run an EJB application, we need an application server such as Jboss, Glassfish, Weblogic, Websphere etc. It performs Life Cycle Management, Object Pooling, Transaction Processing, Security, etc. There are three types of EJB.

What is Spring ?
Spring is an open source lightweight framework that allows Java EE 7 developers to build simple, reliable, and scalable enterprise applications. This framework uses various techniques such as Aspect-Oriented Programming (AOP), Plain Old Java Object (POJO), and dependency injection (DI), to develop enterprise applications.

@Ajker Bisso
Be the first to comment