Can't you set up the queue so it only attempts to deliver it once.
In JBoss Messaging it would be something like:
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=SomeQueue"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <depends
optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| <attribute name="MaxDeliveryAttempts">1</attribute>
| </mbean>
|
If the delivery isn't successful, the message will end up in the dead letter queue.
Hope it helps ;)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219619#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...