int max = maxResent;
try
{
if (msg.propertyExists(JMS_JBOSS_REDELIVERY_LIMIT))
max = msg.getIntProperty(JMS_JBOSS_REDELIVERY_LIMIT);
if (msg.propertyExists(JMS_JBOSS_REDELIVERY_COUNT))
{
int count = msg.getIntProperty(JMS_JBOSS_REDELIVERY_COUNT);
if (count > max)
{
warnDLQ(msg, count, max);
return true;
}
}
}
catch (Throwable t)
{
log.warn("Unexpected error retrieving message properties " + msg, t);
}
return false;