Brief Overview of my code:
I have the following
Java process which is listening to
MyMessageQueue queue of ActiveMQ.
As soon as it gets the message in the format
userName#employeeID#companyID#projectID#clientTitle , I am extracting and using in my code below.
The code keeps on sending message in the format
userName#employeeID#companyID#projectID#clientTitle back to ActiveMQ until it sees
if (receivedStatus.equals("COMPLETE")) { and sends out an email.
The problem I am facing is that after the whole process(which sometime could take few mins or 30 mins) is finished I am seeing open inactive connections. Basically my DBA is complaining about connections which are not closed. The connection count is
increasing after each use of this process. Any idea what's wrong with the connections in my code below?