activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: JMS Docs???
Date Fri, 30 Oct 2009 18:25:26 GMT
On Fri, 2009-10-30 at 11:14 -0700, magellings wrote:
> How come individual acknowledgement mode isn't documented?
> 

The individual acknowledge mode is an ActiveMQ specific mode not
supported directly by the JMS spec so you won't find anything in there
about that.  Individual Ack is pretty much exactly what it sounds like,
it acknowledges only a single message upon calling message.acknowledge()
as opposed to client ack which acks all messages received in the session
up to that point.  

> 4.4.11 Message Acknowledgment
> If a session is transacted, message acknowledgment is handled automatically
> by commit, and recovery is handled automatically by rollback.
> If a session is not transacted, there are three acknowledgment options, and
> recovery is handled manually:
> • DUPS_OK_ACKNOWLEDGE - This option instructs the session to lazily
> acknowledge the delivery of messages. This is likely to result in the
> delivery
> of some duplicate messages if JMS fails, so it should be used only by
> consumers that are tolerant of duplicate messages. Its benefit is the
> reduction of session overhead achieved by minimizing the work the session
> does to prevent duplicates.
> • AUTO_ACKNOWLEDGE - With this option, the session automatically
> acknowledges a client’s receipt of a message when it has either successfully
> returned from a call to receive or the MessageListener it has called to
> process
> the message successfully returns.
> • CLIENT_ACKNOWLEDGE - With this option, a client acknowledges a
> message by calling the message’s acknowledge method. Acknowledging a
> consumed message automatically acknowledges the receipt of all messages
> that have been delivered by its session.
> 
> 
> Timothy Bish wrote:
> > 
> > On Fri, 2009-10-30 at 08:41 -0700, magellings wrote:
> >> Where can one find a link to the JMS Docs???  I'd like to get a better
> >> understanding of some of the JMS specs so I can better understand various
> >> features, etc with ActiveMQ.
> >> 
> >> Timothy states "From JMS Docs on ClientAcknowledge" in this issue.  Where
> >> does one find this information?
> >> 
> >> Found this regarding acknowledgement modes/transactions, but probably is
> >> not
> >> authentic as seems like a Sun version of JMS.
> >> 
> >> http://docs.sun.com/app/docs/doc/820-5205/aeqbj?a=view 
> >> 
> >> I'm looking for full documentation however not just acknowledgement
> >> modes.
> >> 
> >> -Thanks
> > 
> > The JMS Spec docs are here: http://java.sun.com/products/jms/docs.html
> > 
> > The bit that I quoted in the issue was from the javadocs in the
> > Session.java interface.
> > 
> > Regards
> > Tim.
> > 
> > -- 
> > Tim Bish
> > http://fusesource.com
> > http://timbish.blogspot.com/
> > 
> > 
> > 
> > 
> > 
> 
-- 
Tim Bish
http://fusesource.com
http://timbish.blogspot.com/




Mime
View raw message