I have a legacy web application that makes use of Spring. Till now the war is deployed in production on a pre installed tomcat container. The tomcat container will create a JNDI and The application makes use of JNID to connect to DB.
Now i want wrap this legacy application war using the spring boot and embedded tomcat.
I believe there will be 2 application context created: One by Spring Boot and One by the legacy application using Spring .
What is the best way to wrap this legacy war application using Spring boot?
Also i still want to create the JNDI in the spring boot embedded tomcat and share it with the legacy application.
By the way i was trying to use the spring boot tomcat jndi sample available here: https://github.com/wilkinsona/spring-boot-sample-tomcat-jndi
The reason for wrapping the service with Spring Boot is to create Docker containers to share with multiple teams.