mirror of https://github.com/apache/activemq.git
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:
parent
8835535a94
commit
b4a29250b4
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue