8 Replies Latest reply on Aug 31, 2011 6:03 PM by Jeff Spar

    How to close client connections from the server side?

    Jeff Spar Newbie

      I was hoping to be able to close a client connection using HornetQServerControl.closeConnectionsForAddress but it requires an IP address and I don't know what address to use and I don't even see a way to find out what addresses are connected. I thought perhaps I could use ClientSession.addMetaData to associate certain information with the clients in order to know which one I want to disconnect, but I don't see a way to see this meta data on the server side. So then I thought I could just use HornetQServerControl.destroyQueue but that throws an exception when there is still a consumer on the queue. Is there any way to override this?