Interesting.
As it is now I have clustering enabled so that things like singleton ejb tasks will only run on one of the replicas.
So say I have a task that is configured to run every 5 min, and there are 3 replicas. Every 5 min, one of the replicas will perform that task. This works great. In most of the cases that task simply fires and puts something on a queue so that if two of these happened they could be serialized to have one run after the other.
But I also have a case where a web service is called frequently and that webservice puts something on jms queue of whatever replica answered the request. In my UI, which uses vaadin, I'm using sticky sessions so that the first pod/replicas that the user logged into remains the one they talk to via ui. I'd like to, when an admin logs in, show the count of messages in the queue on each of the replicas. But because the jms queue stuff is not configured for clustering, because as far as I understand it, it would require setting up some sort shared storage between the various replicas/pods, I wasn't sure if I could ask the messaging system for counts in one place or if I would have to talk to each of the replicas to get their counts.
I'll take a look at your code and see how I might try this out.
Thanks!