3

I have an old java EE project which uses EJB and CDI and runs on Tomcat web container. I then recently created a project using spring core. Is it ok to use the spring within EJB project?

If yes, then how component lifecycle works for both. Will there be a conflict?

Rishabh Agarwal
  • 1,988
  • 1
  • 16
  • 33

1 Answers1

1

You can use the spring library inside the EJB project. But what is the use case? https://www.baeldung.com/spring-ejb https://dzone.com/articles/ejb-30-and-spring-25