summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/binding-jms-runtime
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2008-08-06 10:05:43 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2008-08-06 10:05:43 +0000
commitd2ac16df25215a6828ef6c1cbf993833eb58b73a (patch)
treeaabb16a62a8c7b0ac5bc531b91570b38ecc920e6 /java/sca/modules/binding-jms-runtime
parent4941eb000f095979ba8fdd9e8ab59b090f7f99b9 (diff)
Add runtime support for selectors
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@683208 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-jms-runtime')
-rw-r--r--java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingServiceBindingProvider.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingServiceBindingProvider.java b/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingServiceBindingProvider.java
index c372d7848e..2e19db86ca 100644
--- a/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingServiceBindingProvider.java
+++ b/java/sca/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingServiceBindingProvider.java
@@ -133,7 +133,11 @@ public class JMSBindingServiceBindingProvider implements ServiceBindingProvider
destination = session.createTemporaryQueue();
}
- consumer = session.createConsumer(destination);
+ if (jmsBinding.getJMSSelector() != null) {
+ consumer = session.createConsumer(destination, jmsBinding.getJMSSelector());
+ } else {
+ consumer = session.createConsumer(destination);
+ }
final JMSBindingListener listener = new JMSBindingListener(jmsBinding, jmsResourceFactory, service);
try {