I have a single node ActiveMQ instance with two competing consumers connected to a topic. The topic subscription is shared as per JMS 2.0 specification. Shared subscription does guarantee that only either of the subscribers (using same subscription name) gets the message. But what I noticed is that it does not guarantee that the second message is delivered only if the first one is acknowledged. In case if the first consumer takes time to acknowledge the message, the second message is delivered to the free consumer even before the acknowledgement of the first one is sent by the consumer to the broker. Is this a standard behaviour? And is there a way to stop the broker from delivering the second message before the acknowledgement of the first one?
ActiveMQ Artemis JMS Shared Subscription
1k Views Asked by akki At
1
There are 1 best solutions below
Related Questions in REDHAT
- Choosing OpenShift Over DIY Kubernetes on Bare Metal: Benefits and Storage Management
- Is it possible to mount a logical volume without wiping the data?
- How to setup security on elasticsearch based on redhat image in openshift
- How to use the host IP as the connection to an external server in a docker container?
- looking for help on package for REHL UBI 8/9: saxon
- libxml2 and libxslt development packages issue in Redhat Linux
- Get Apache to create files as the web site owner
- Differences in behavior of kill(pid, SIGINT) between Debian and Red Hat based distros
- cannot contain "Catalina sh not working in java devel"
- Puppet Unknown variable: 'osfamily' on Rocky 9
- Cannot extend jboss-eap-7 container
- How to auto confirm question with parted tool using Ansible in Linux
- dockerfile - add a package to ubi minimal base image from private repository
- I want to access a password stored in a elytron credential store using system properties in jboss eap 7.4 version
- connection issues when MLFLow is hosted on remote server
Related Questions in ACTIVEMQ-ARTEMIS
- ActiveMQ Artemis memory not reducing in Windows
- rhea amqp ActiveMQ Artemis connection error
- Restrict Large messages to ActiveMQ Artemis
- ActiveMQ Artemis - prevent permanent stalling of messages
- Log4j2.properties not keeping more than 7 files in the log despite exceed number set much higher
- Messages silently getting dropped without any error to producers for disabled queues in ActiveMQ Artemis
- JMeter parallel mq publishing request messages with unique sequence ID which needs to be validated against external system before being sent
- Fair Queues with ActiveMQ Artemis?
- Empty queue do not auto delete in ActiveMQ Artemis
- Redeliver JMS message from ActiveMQ Artemis queue
- Apace ActiveMQ Artemis 2.32.0 console - Not able to view or browse message
- JMeter JMS Publisher error when trying to publish to ActiveMQ Artemis queue: java.lang.NoSuchMethodError: javax.jms.Message.setJMSDeliveryTime(J)V
- ActiveMQ Artemis - Get current redelivery count for scheduled messages
- How to Configure ActiveMQ Artemis Server to Interoperate Messages Across Different Procotols AMQP and Openwire
- Valid value usage in JMeter's JMS Subscriber 'JMS Selector' property - in order to consume messages with a dynamically changing JMSCorrelationID
Related Questions in AMQ
- How can I create a container from the jboss amq-7-broker-image repo image
- Taking too long to send first message to JMS topic from Spring Integration
- How can we connect ActiveMQ and WebSphere MQ in one Spring Boot application?
- ActiveMQ StatisticsPlugin not working with wildcard destinations
- What version of Apache ActiveMQ corresponds to the JBoss A-MQ v6.3?
- How to publish to a Red Hat AMQ 7 topic using AMQP 1.0 from a test case using amqp-10-jms-spring-boot-starter
- How to use a topic in Red Hat AMQ 7 using AMQP 1.0 and consume in Spring Boot?
- Openshift AMQ6 - message order - queue
- AMQ212054: Destination address=... is blocked. If the system is configured to block make sure you consume messages on this configuration
- How to replace the base Java image in public base image with customized version
- How to stop streaming when no data is left to read in the AMQ topic
- Calling AMQ Listener from APIGEE Proxy end point
- What certificates does an Artemis AMQ subscriber using stomp.py need to establish a SSL connection to server
- Does stomp.ConnectionListener in python holds any data while dequeuing messages from ActiveMQ?
- AMQ Error reading in simpleString, length=xxx is greater than readableBytes=yyy
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
ActiveMQ Artemis allows the exclusive queues. They are special queues which route all messages to only one consumer at a time. Obviously exclusive queues have a draw back that you cannot scale out the consumers to improve consumption as only one consumer would technically be active.
However I would suggest to take a look at the message grouping to scale out your solution. Message groups are useful when you want all messages for a certain value of the property to be processed serially by the same consumer, without stopping the delivery of messages with different value of the property to other consumers.