Re: Queue size from client side

2016-07-20 Thread Korny Sietsma
I needed to find the master broker similarly, for our resiliency testing - you can call connection.getBrokerInfo() (you might have to cast the connection to ActiveMQConnection if you just have a JMS Connection object), and then that exposes a pile of information like getBrokerURL() and isMaster().

Re: Queue size from client side

2016-07-20 Thread khandelwalanuj
Statistics plugin requires config changes in broker xml. I am looking for a way to get the queueSize from the client side itself without changing anything in broker. Thanks, Anuj -- View this message in context: http://activemq.2283324.n4.nabble.com/Queue-size-from-client-side-tp4714102p47141

Re: Queue size from client side

2016-07-20 Thread khandelwalanuj
Problem with JMX is I can't specify failover url : "service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi" I am using master slave topology and I don't know which broker is master and which is slave at any point of time, So I have to maintain the list of broker URLs and keep trying until connection

Re: Queue size from client side

2016-07-20 Thread Tim Bain
Or JMX? http://activemq.apache.org/jmx.html On Jul 19, 2016 1:00 PM, "Quinn Stevenson" wrote: > Have you looked at the Statistics Plugin? > > http://activemq.apache.org/statisticsplugin.html < > http://activemq.apache.org/statisticsplugin.html> > > > On Jul 19, 2016, at 5:51 AM, khandelwalanuj

Re: Queue size from client side

2016-07-19 Thread Quinn Stevenson
Have you looked at the Statistics Plugin? http://activemq.apache.org/statisticsplugin.html > On Jul 19, 2016, at 5:51 AM, khandelwalanuj > wrote: > > Hi, > > How to check Queue size from ActiveMQ java client ? > > Thanks, > Anuj > > > >