I have a WAR and an EAR deployed in wildfly. The ear has a spring boot application which spins up a particular bean. I want that instance of the bean to available in jndi something like
java:/mySpringBean
so that I can do a lookup from the WAR (which again has a spring context). The goal is to reuse the instance which was instantiated from the EAR spring boot.
First of all, I'm not sure if that's even possible, I tried https://konstantinpavlov.net/blog/2009/01/01/how-to-export-spring-managed-bean-to-jndi/ but it doesnt seem to be working, after I added the code from above I do not see a an entry in wildfly management console under the JNDI view.