JMS Appender does not disconnect connection while restarting Mule Application
We have simple application running on mule runtime. When we hit the http request with hostname and port no the request pass to this application and return hardcoded payload to webpage.
And whiten the application we configure log4j2.xml file to send the generate log by this application to specific active MQ queue for ELK logging.
The issue we are facing that when we restart this application from mule. The JMS Appender in log4j2.xml file creates new connection with active MQ. Every time we restart it we can see the connection increasing in active MQ under connections. How do we prevent to create new connection while restarting the application?
Do we have any attribute within the JMS appender tag to close the connection while restarting the application and recreate new JMS connection with activeMQ or any other solution.
Only we can disconnect those available connections on active MQ side with restarting mule runtime where the application is running.