- 
        1. Re: How to close client connections from the server side?jendo Aug 29, 2011 3:57 PM (in response to jendo)Of course after I post this, I see HornetQServerControl.listAddresses which gives me all IP Addresses, but it still doesnt help me filter which one is the one I want to use. 
- 
        2. Re: How to close client connections from the server side?clebert.suconic Aug 29, 2011 3:59 PM (in response to jendo)What version? Latest version has some metadata on Consumers and Sessions that helps you find them based on clientIDs (assuming you are using client-ids, or any other metadata) 
- 
        3. Re: How to close client connections from the server side?jendo Aug 29, 2011 5:50 PM (in response to clebert.suconic)I'm sorry, I should have specified. I am using 2.2.5.Final. Also, I am just using core libraries, nothing JMS. 
- 
        4. Re: How to close client connections from the server side?clebert.suconic Aug 29, 2011 7:57 PM (in response to jendo)There's a method on the Core-Session called addMetaData(); This is a temporary hack, but maybe it would work: You could add two attributes to your client metadatas: session.addMetaData("jms-session","1"); sesison.addMetaData("jms-client-id","something-that-identify-your-client"); on JMSServerControl, you would be able to use listConnectionsAsJSON(); You will then have the address exposed, to something more specific to your clients. We may add some method on Core to print the connections and their entire meta-data. (you could maybe add a JIRA?) 
- 
        5. Re: How to close client connections from the server side?jendo Aug 30, 2011 11:12 AM (in response to clebert.suconic)Thank you for the response. I have tried adding meta data on the session as you suggested but JMSServerControl.listConnectionsAsJSON is not returning any information. 
- 
        6. Re: How to close client connections from the server side?jendo Aug 31, 2011 3:51 PM (in response to jendo)I see the addMetaData being discussed here but I don't see any way to retrieve that meta data using the HornetQServerControl. Is this information accessed some other way? If not, what is the purpose of adding meta data? 
- 
        7. Re: How to close client connections from the server side?clebert.suconic Aug 31, 2011 4:22 PM (in response to jendo)There's a JIRA for adding support on non-jms objects (to list it through CoreControl). At this point it's only available through JMS Server Control. I don't know why it didn't work for you. You could probably find out easily with some easy debug. 
- 
        8. Re: How to close client connections from the server side?jendo Aug 31, 2011 6:03 PM (in response to clebert.suconic)Ok, I got it working. What I was missing was session.addMetaData("jms-session","1"); I assume the value has to be unique among all the clients, correct? Thanks again for your help! 
 
    