I have a spring boot app which is deployed on
tomcat on RHEL server which is trying to connect to ActiveMQ and it keeps on throwing following error in tomcat logs. The main reasons I have noticed why this happened was because either ActiveMQ isn't running or listening over another port.
The main issue is how to get rid of this warning from tomcat? How can I kill this? Because of this warning, it won't let other deployed apps on the tomcat to run properly. So I had to ask my server team to reeboot the server to get rid of this warning. This option isn't feasible for me everytime I run into this issue. Another weird thing I have noticed is that, whenever the following error occured, I deleted the application from tomcat webapps directory which was trying to connect to
tcp://localhost:61616 and the tomcat live logs were still showing same error. So even though the application didn't exists in tomcat, this WARNING was still going on and preventing other apps from deploying.
My application.properties of springboot app has following configuration: