I am having an issue with activemq broker. My requirement is that whenever the same client requests for a connection again then I should close the existing connection with that client and start a new one. For this purpose I have written a plugin that calls old connection closure getting the connection details that were saved in two maps earlier (for ConnectionContext and ConnectionInfo respectively) when that connection was created.
I call these apis * ((TransportConnection)localConnectionContext.getConnection()).processRemoveConnection(); //localConnectionContext is got from connContext save in map. ((TransportConnection)localConnectionContext.getConnection()).stop(); * Using this code whenever I connect through another client with same client id in jconsole I can see remote address for the client getting changed and old remote address getting removed. However, my connection is getting closed only on activemq level and not on tcp level. Using netstat -a I can still see old connections that were made through same client in establishes state. I am using a websocket connection. What tcp setting should I do in activemq.xml that old sockets get closed on tcp level? -- View this message in context: http://activemq.2283324.n4.nabble.com/Regarding-activemq-sockets-not-getting-closed-tp4697390.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.