summaryrefslogtreecommitdiff
path: root/java/client
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2009-06-03 03:12:03 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2009-06-03 03:12:03 +0000
commit560c91b87a0960f030e3d5c3d6cc2431348e0b1a (patch)
tree1ba7742ddbf7363bdd98b41673465a3191562e7a /java/client
parent1ae72df2ca7a0f1a66b7c97f86409ff9761e4f85 (diff)
downloadqpid-python-560c91b87a0960f030e3d5c3d6cc2431348e0b1a.tar.gz
This is a fix for QPID-1888
The SelectorTest contains a test case to catch this as the JMS tck does not have one. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@781244 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client')
-rw-r--r--java/client/src/main/java/org/apache/qpid/filter/PropertyExpression.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/filter/PropertyExpression.java b/java/client/src/main/java/org/apache/qpid/filter/PropertyExpression.java
index 2c05f5ce0f..09152f7f1b 100644
--- a/java/client/src/main/java/org/apache/qpid/filter/PropertyExpression.java
+++ b/java/client/src/main/java/org/apache/qpid/filter/PropertyExpression.java
@@ -204,6 +204,24 @@ public class PropertyExpression implements Expression
}
}
});
+
+ JMS_PROPERTY_EXPRESSIONS.put("JMSMessageID", new Expression()
+ {
+ public Object evaluate(AbstractJMSMessage message)
+ {
+ try
+ {
+ return message.getJMSMessageID();
+ }
+ catch (Exception e)
+ {
+ _logger.warn("Error evaluating property",e);
+
+ return null;
+ }
+
+ }
+ });
}