[jboss-user] [EJB/JBoss] - Re: MDB 'at most, once' delivery (Ack before onMessage)
serquicia
do-not-reply at jboss.com
Thu Mar 19 16:48:05 EDT 2009
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#4219619
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219619
More information about the jboss-user
mailing list