Spring and EJB have the same functionalities?

5

Does Spring and EJB have the same functionality?

If not, can you use both in the same application?

    
asked by anonymous 06.09.2016 / 13:47

1 answer

2

No, they have different purposes. Spring is a framework that works with dependency injection. The goal is to facilitate object creation by leaving it to specific providers and not to classes that use dependencies. EJB is used for the development of projects that use a SOA architecture. Its purpose is to enable the implementation of functionalities such as services. As a result, systems become more modular and reusable, facilitating continuous delivery by service. Both can be used in the same application, and they are even very often.

    
06.09.2016 / 13:56