Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Project inside EJB project

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?

like image 309
Rishabh Agarwal Avatar asked Apr 28 '26 06:04

Rishabh Agarwal


1 Answers

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

like image 70
Harish Kumar Avatar answered May 01 '26 00:05

Harish Kumar