[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-1070) dlqhandler fails on redelivery for messages missing the JMS property "JMSXDeliveryCount"
Danilo Guerra (JIRA)
jira-events at lists.jboss.org
Mon Oct 15 16:39:03 EDT 2007
dlqhandler fails on redelivery for messages missing the JMS property "JMSXDeliveryCount"
-----------------------------------------------------------------------------------------
Key: EJBTHREE-1070
URL: http://jira.jboss.com/jira/browse/EJBTHREE-1070
Project: EJB 3.0
Issue Type: Bug
Affects Versions: AS 4.2.1.GA
Reporter: Danilo Guerra
GenericDLQHandler fails when handling redelivery of messages missing the property "JMSXDeliveryCount" when using non JbossMQ providers.
excerpt from the class: org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler
protected boolean handleDelivery(Message msg)
{
.....
try
{
if (msg.propertyExists(PROPERTY_DELIVERY_COUNT))
count = msg.getIntProperty(PROPERTY_DELIVERY_COUNT) - 1;
}
catch (JMSException ignored)
{
count = incrementResentCounter(id);
}
...
}
This code fails because the property PROPERTY_DELIVERY_COUNT is checked and the exception is never thrown. As a result the resent counter is not incremented and the message will not be sent to the DLQ.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list