Load balancing/sharing topic listener within a cluster
I'm using Spring JMS within tomcat container to publish/consume messages. There are different subsystems within one large application. Each of the subsystem runs under its own tomcat container
I have a requirement where each of the subsystems running under different Webserver containers need to process a topic message concurrently. However within a subsystem there should be only one topic listener processing the topic message. In a single server instance this works fine as I configure just one MDB topic listener within a subsystem. However when the subsystem runs under a cluster each of the server instances within the cluster processes the topic message concurrently. How can I ensure only one instance within the cluster consumes the topic message.