How are you enforcing the singleton?

-- 
Danny Yates
 


-----Original Message-----
From: Barlow, Dustin [mailto:[EMAIL PROTECTED] 
Sent: 14 August 2003 19:00
To: [EMAIL PROTECTED]
Subject: [JBoss-user] MDB Singleton retry semantics


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


_____________________________________________________________________ 
Notice to recipient: 
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you are
not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. 

When addressed to external clients any opinions or advice contained in this
internet e-mail are subject to the terms and conditions expressed in any
applicable governing terms of business or client engagement letter issued by
the pertinent Bank of America group entity. 

If this email originates from the U.K. please note that Bank of America,
N.A., London Branch, Banc of America Securities Limited and Banc of America
Futures Incorporated are regulated by the Financial Services Authority.
_____________________________________________________________________ 




-------------------------------------------------------
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