Am thinking that the fix for http://issues.apache.org/activemq/browse/AMQ-2335 should just whack the password. leaking or providing the user in the advisory is probally ok. When logging connection info commands we just remove or replace with "****" the password. https://issues.apache.org/jira/browse/AMQ-2499
On 29 November 2012 17:21, prgtrdr <prgt...@gmail.com> wrote: > Rob, > > I'm stuck on something that is probably obvious but I just can't figure out > how to do it. > > What I want to do is retrieve the userName from an incoming Stomp > connection. I am creating the broker in my code and have also set up > monitoring Advisory messages. The onMessage function receives the > ConnectionInfo message but the userName and password are deleted from the > message. My guess is to get at the userName I have to somehow lookup the > Connection object based on the ConnectionId contained in the Advisory > ConnectionInfo message, then I can get the userName from the Connection. > > Is that right? Or is there an easier way? If it's right, how do I lookup > the Connection object? > > Thanks, > Bill > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/ActiveMQ-Advisory-Connection-messages-includes-username-and-password-tp2365496p4659946.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- http://redhat.com http://blog.garytully.com