activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <>
Subject Re: How can I retrieve a Stomp username when a new Connection is made?
Date Thu, 29 Nov 2012 20:43:31 GMT
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.

Otherwise, to get at it in JMX, make sure your broker is populating the

        BrokerService service = new BrokerService();

Good luck!

On Thu, Nov 29, 2012 at 12:29 PM, prgtrdr <> wrote:

> Thanks, Christian.
> 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
> instance?
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

*Christian Posta*
twitter: @christianposta

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message