Re: Problem Consuming from queue with more than one consumer

2016-07-20 Thread Tim Bain
What does "consume messages in a round robin fashion" mean to you? What happens when only one works at a time? What are the symptoms of the failure when there are two consumers? Tim On Jul 20, 2016 3:28 PM, "etiennet123" wrote: > Hi > > I am trying to create a app to

Problem Consuming from queue with more than one consumer

2016-07-20 Thread etiennet123
Hi I am trying to create a app to consume messages in a round robin fashion. However only one will work at a time. Preferably I would like to create two seperate apps to consume from the same queue. Here is the code I am trying to use: using System; using System.Collections.Generic; using

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: problems getting test results deterministic

2016-07-20 Thread Quinn Stevenson
Have you tried explicitly disabling the automatic creation of embedded brokers (i.e. add create=false option to vm://…. ) > On Jul 20, 2016, at 9:15 AM, jnicolay wrote: > > Hi all > > We ran into some strange behavior in our application and I tried to reproduce > it in

problems getting test results deterministic

2016-07-20 Thread jnicolay
Hi all We ran into some strange behavior in our application and I tried to reproduce it in a unit test. Our setup looks somewhat like this: +---+ ++ +---+ | embedded1 | <---> | master | <--> | embedded2 | +---+ ++ +---+

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:

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

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,