I have tried this with activemq 5.0,5.1 and latest snapshot of activemq as of 20080521. I am using apacha nms.net client. On a connect it receives messages and on a regular shutdown the connection is disconnected and everything shutsdown w.r.t that connection in the server side. Now if there is network issue or when we disable and enable the network from the client side , a reconnect request is sent with a new clientid and the connection is established.But the old connection is still active which is evident from a netstat on the server machine. The client side netstat shows only the latest connection which is on port 1870.
tcp 0 0 ::ffff:10.1.30.60:51616 ::ffff:10.1.30.176:1828 ESTABLISHED
tcp 0 0 ::ffff:10.1.30.60:51616 ::ffff:10.1.30.176:1870 ESTABLISHED
The server is 10.1.30.60:51616.