summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java
diff options
context:
space:
mode:
authorbdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68>2010-09-14 15:14:28 +0000
committerbdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68>2010-09-14 15:14:28 +0000
commitcd9ab8e3827e58c57630842a9aaa802dcfe8e8df (patch)
treeca6a85e38e3eb4c43b398e722b7836a4d8b7621a /sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java
parentc5be2f4907eaba7012d23d1fcb9ff96535f05024 (diff)
BJM_3020 Validate that activationSpec is not used on a reference
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@996943 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java')
-rw-r--r--sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java b/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java
index 8053ba69e4..4ee0719707 100644
--- a/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java
+++ b/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingReferenceBindingProvider.java
@@ -106,6 +106,9 @@ public class JMSBindingReferenceBindingProvider implements EndpointReferenceProv
// }
}
+ if ( jmsBinding.getActivationSpecName() != null ) {
+ throw new JMSBindingException("Activation spec can not be specified on an SCA reference binding.");
+ }
Invoker invoker = null;
invoker = new RRBJMSBindingInvoker(operation, jmsResourceFactory, endpointReference);