there is no session view mbean but you can extrapolate sessions from
consumer/producers because they are all composed from the connection
id.

The transportConnector view gives a list of connections on a given
transport and there is an MBean per connection.

use broker.getManagementContext().queryNames(null, null); to get a
list of all mbeans of filter to using a connector mbean wildcard.
There are a bunch of utility methods that can help with mbean object
name creation:
https://github.com/apache/activemq/blob/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/BrokerMBeanSupport.java#L227

On 25 July 2013 00:09, karraj84 <karra...@yahoo.co.in> wrote:
> Hi,
>
> I am trying to get the list of available connections and sessions from a
> activemq server using broker service. I am seeing method for getting list of
> subscribers, producers/consumers using QueueViewMBean object but not for
> connections or sessions.
>
>
> Any suggestions will be truly appreciated.
>
> Thanks in advance,
> Karthikeyan K
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/Is-there-any-method-to-get-the-list-of-active-connections-and-sessions-using-broker-service-tp4669692.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://redhat.com
http://blog.garytully.com

Reply via email to