[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Expiring/DLQ same message from multiple subscriptions

timfox do-not-reply at jboss.com
Sun Dec 31 04:22:23 EST 2006


If I send a message to a topic, and it ends up being delivered to n subscriptions on that topic, then the message expires, should the message be added to the expiry queue n times, one for each subscription, or only once?

A more complex but related situation is for messages that have exceeded max delivery attempts.

If a message is sent to a topic with n subscriptions. Then depending on how many times the client calls recover() or rollback() for one or more of the subscriptions, then the message could have exceeded max delivery attempts for some of the subscriptions but not with others.

So the message needs to be added to the DLQ for some of the subscriptions, but not for others - how does this effect the subscriptions who have not exceeded max delivery attempts.

Can we end up with a situation where the same message (same message id) is in the queue (dlq or expiry queue) multiple times? Would we get primary key violations in the database?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997033#3997033

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997033



More information about the jboss-dev-forums mailing list