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.
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)
I'm sorry, I should have specified. I am using 2.2.5.Final. Also, I am just using core libraries, nothing JMS.
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:
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?)
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.
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.
Ok, I got it working. What I was missing was
I assume the value has to be unique among all the clients, correct?
Thanks again for your help!