Fixes AMQ-4144: When used in a message selector, the JMSDeliveryMode header field should be treated as having the values 'PERSISTENT' and 'NON_PERSISTENT'.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1403751 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2012-10-30 15:56:05 +00:00
parent 8835535a94
commit b4a29250b4
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public class PropertyExpression implements Expression {
JMS_PROPERTY_EXPRESSIONS.put("JMSDeliveryMode", new SubExpression() {
public Object evaluate(Message message) {
return Integer.valueOf(message.isPersistent() ? DeliveryMode.PERSISTENT : DeliveryMode.NON_PERSISTENT);
return message.isPersistent() ? "PERSISTENT" : "NON_PERSISTENT";
}
});
JMS_PROPERTY_EXPRESSIONS.put("JMSPriority", new SubExpression() {