git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@984489 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2010-08-11 17:38:26 +00:00
parent 1f85f4b685
commit 612b044169
1 changed files with 2 additions and 2 deletions

View File

@ -237,8 +237,8 @@ public class SimplePriorityMessageDispatchChannel implements MessageDispatchChan
protected int getPriority(MessageDispatch message) {
int priority = javax.jms.Message.DEFAULT_PRIORITY;
if (message.getMessage() != null) {
Math.max(message.getMessage().getPriority(), 0);
priority = Math.min(priority, 9);
priority = Math.max(message.getMessage().getPriority(), 0);
priority = Math.min(priority, 9);
}
return priority;
}