Have you tried explicitly calling connection.Dispose() before exiting your program? To get round this problem I just called Close() and Dispose() on every NMS object that exposed either or both those methods and it seemed to work for me. I suspect that just disposing of the connection may be enough to do the job though. I would be interested to know what happens for you.
Chris -- View this message in context: http://www.nabble.com/Orphan-connections-from-.NET-clients-tf3879502s2354.html#a11269315 Sent from the ActiveMQ - User mailing list archive at Nabble.com.