That isn't the way it currently works.

The ConnectorConsumer immediatley retrieves the next message
from the queue then waits for a ServerSession from the pool.

Once you've nacked the failed message back into the queue, it will
process the waiting message using the freed session.

It will then ask the queue for the next message which will
be the one you nacked.

To make it work the way you want the ConnectionConsumer
would have to work in the opposite order.
Instead of receiving message(s) and waiting for a
ServerSession. It would wait for a ServerSession then
receive the message.
This is obviously less efficient in the normal use case,
you lose the "readahead" of the messages.

Regards,
Adrian

On Thu, 2003-08-14 at 19:00, Barlow, Dustin wrote:
> I have a singleton CMT MDB consuming on a JMS queue with a retry threshold
> set to 3 attempts.  I made the assumption that no other messages on the
> queue would be consumed until the current message being processed either
> finishes and is consumed, or in the event of a container transaction
> rollback and the retry threshold is reached, the message is consumed off the
> source queue and pushed to the DLQ.
> 
> However, the behaviour I'm seeing is that on the retry, other messages
> sitting on the queue are consumed prior to the retry occurring.  The
> singleton is working in terms of only one message at a time being processed,
> however the retry semantic seems odd to me in that it appears like the
> implementation of the retry logic is just simply pushing the message back on
> the queue to be consumed again in a different "thread" later on. 
> 
> Is this correct?  If so, how do I change that behaviour so that no other
> messages on the queue are triggered until the message completes its
> processing either by consumed normally, or by being consumed and pushed to
> the DLQ once the retry threshold is reached?
> 
> Dustin
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to