I have a requirement where in there are two maven modules as below.
Portal 1. EJBModule 2. Framework 3. UIModule
Whenever I make a call to @RestController
in UIModule it invokes a Service in Framework which uses lookup as below and gets the EJB bean.
initContext.lookup(ejbServiceId);
and uses that bean with reflection to call the a particular method.
My requirement is to replace the EJB layer with its beans to Spring Beans.
I can create a Spring bean but could not invoke it using initContext lookup, I tried creating a New Spring module and Adding dependency to framework ( But in this approach I need some model objects if I add the model objects to this new spring module it is creating a circular maven dependency).