camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: CLIENT_ACKNOWLEDGE and Sessions
Date Sat, 24 Apr 2010 08:50:42 GMT

camel-jms consumer is based on Spring JMSMessageListenerContainer, after 
digging the JMS message receiving code for a while, it's consuming one 
message per session.


Monica_G wrote:
> Hi,
> How do sessions work with Camel?  Is there only one message consumed per
> session?
> I've set the acknowledgment mode to be CLIENT_ACKNOWLEDGE via the
> JmsComponent
> ( .  However, I read the following on the 
> sun jms site 
> "Session.CLIENT_ACKNOWLEDGE: A client acknowledges a message by calling the
> message’s
> acknowledge method. In this mode, acknowledgment takes place on the session
> level:
> Acknowledging a consumed message automatically acknowledges the receipt of
> all
> messages that have been consumed by its session. For example, if a message
> consumer
> consumes ten messages and then acknowledges the fifth message delivered, all
> ten messages
> are acknowledged."
> If camel only consumes one message per session then I'm golden.  I did some
> local tests, and this appears to be the case, but I wanted to double check
> here in case I missed something.
> Thank you,
> Monica

View raw message