[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: http://jira.jboss.org/jira/browse/JBMESSAGING-808 - Fail

timfox do-not-reply at jboss.com
Mon Feb 5 16:20:08 EST 2007


One idea:

When retrying a send (or a send transaction) after failover, you could add a flag in the request (checkForDuplicates = true).

On the server side, when it processes the request, if this flag is true, then before inserting the messages, you can check in the database to see if the messages already exist (pm.referenceExists()) and if so, you silently ignore the request.

This isn't perfect, and doesn't cope with the case where the message is acked before the duplicate arrives, but to deal with that we need duplicate message detection via a cache or something.

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

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



More information about the jboss-dev-forums mailing list