diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-29 13:24:38 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-29 13:24:38 +0000 |
commit | 27fd11edd7796806395e2f51120cf9e31eb34b85 (patch) | |
tree | f8b50b9e074a143fbe82aa6057b487591fa43da1 | |
parent | 1d699bfbcb32264525869f799f41750d21cfa086 (diff) |
Sanity check the service binding response activation spec
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@980444 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingServiceBindingProvider.java | 4 |
1 files changed, 4 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/JMSBindingServiceBindingProvider.java b/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingServiceBindingProvider.java index 225d514045..e842baaf6d 100644 --- a/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingServiceBindingProvider.java +++ b/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/provider/JMSBindingServiceBindingProvider.java @@ -90,6 +90,10 @@ public class JMSBindingServiceBindingProvider implements EndpointProvider, JMSSe this.jmsResourceFactory = jmsResourceFactory; this.registry = registry; + if (jmsBinding.getResponseActivationSpecName() != null && jmsBinding.getResponseActivationSpecName().length() > 0) { + throw new JMSBindingException("[BJM30023] response/activationSpec element MUST NOT be present when the binding is being used for an SCA service"); + } + // Set the default destination when using a connection factory. // If an activation spec is being used, do not set the destination // because the activation spec provides the destination. |