Mmmm... good question.. it can be accessed through the BrokerService object, but it was never intended to be made accessible... would have to use some hacking to get at it. See attached unit test that has such hacking.
To put it more succinctly, what I want to do is retrieve the userName for a
given ConnectionId returned by the Advisory onMessage function.
Do you think JMX is the easiest way to do this? Can't I use the
BrokerService or some other object I have created in the embedded ActiveMQ
View this message in context: http://activemq.2283324.n4.nabble.com/How-can-I-retrieve-a-Stomp-username-when-a-new-Connection-is-made-tp4659949p4659954.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.