activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakub Korab <>
Subject Re: Visibility timeout feature
Date Tue, 03 Apr 2012 13:31:37 GMT
Hi Arijit,

Visibility timeout is an Amazon SQS feature that is there specifically for
stateless distributed systems. The timeout is there to support a form of
pessimistic locking on the message, such that the message is redelivered if
a client that has received a message does not respond sufficiently quickly
or dies. This is necessary as there (after a quick browse through the docs)
is no persistent connection to the messaging service, and therefore the
service does not know when the client has gone away. Message delivery is

JMS works on a different basis
The broker knows the state of live client connections (it is stateful),
working off that information to prevent messages dispatched to those clients
from being resent to others. When a client receives the message, it is
acknowledged and subsequently removed from the broker. If the client sends a
poison-ack on failure, or disconnects before acknowledging, the message is
redelivered to another client. 

Since JMS connections are stateful, there is no need for a pessimistic
locking mechanism like visibility timeout. 

and the other acknowledgement modes below it for further info.


imarijitbose wrote
> Hi,
> Is visibility timeout feature is already part of the activemq?
> Is there anyway i can manipulate the visibility of a message from the
> consumers.
> Thanks and Regards,
> Arijit

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message