I am working as JBoss Administrator, I have a very concerning issue related with Spring Boot 1.5.16 and JBoss 6.4 EAP.
Introduction The application is archived as War and it is contained into an EAR with another Spring Application and an Angular as well.
Problem As far I test the deploy in local, none issue appears. Although in the local environment the War is loaded correctly into JBoss, in a remote test server the run would hang during the Spring Boot Application running in this specific phase.
Despite the app is being loaded and run correctly (the whole app works), if the application is restarted, Spring Boot Application won't close its session successfully. The result is that on the new loading phase, the JVM will have doubled its resources occupied and so on.
What I did I focused essentially to this message:
It might be an issue related to multiple context initialization? I provide you with my relevant classes and I hope for your advice.
Some Details I have a JNDI Database Connection that works correctly at least in local environment. I have no web.xml. This is the springboot app sub-deployment in jboss-deployment-structure.xml
Why do you want to deploy a Spring Boot application in a JEE container like JBoss? The point to Spring Boot is that it runs standalone (using its own embedded container). If you want to run it in a JEE container, why not use a (regular) Spring application?