From f04913e8cefaf78e4ae3a783118a95e13a450c68 Mon Sep 17 00:00:00 2001 From: antelder Date: Fri, 14 Jan 2011 13:49:42 +0000 Subject: Remove actspec == destname check as thats not strictly correct and the test requirement isn't in the compliance tests anymore git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1059008 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/binding/jms/JMSBindingProcessor.java | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'sca-java-2.x/trunk/modules/binding-jms/src') diff --git a/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java index 97dfd5f4cf..b9d7d7a6f6 100644 --- a/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java +++ b/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java @@ -1005,20 +1005,6 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St error(monitor, "DestinationURIContradiction", jmsBinding, jmsBinding.getJMSURI(), jmsBinding.getDestinationName()); } - // If activation spec and destination are both specified, they have to match - if ( ( jmsBinding.getActivationSpecName() != null ) && (jmsBinding.getActivationSpecName().length() > 0 ) && - (jmsBinding.getDestinationName() != null) && (jmsBinding.getDestinationName().length() > 0 ) ) { - if ( !jmsBinding.getActivationSpecName().equals(jmsBinding.getDestinationName())) { - error(monitor, "ActivationSpecAndDestinationMismatch", jmsBinding, jmsBinding.getActivationSpecName(), jmsBinding.getDestinationName()); - } - } - - if ( ( jmsBinding.getResponseActivationSpecName() != null ) && (jmsBinding.getResponseActivationSpecName().length() > 0 ) && - (jmsBinding.getResponseDestinationName() != null ) && (jmsBinding.getResponseDestinationName().length() > 0 ) ) { - if ( !jmsBinding.getResponseActivationSpecName().equals(jmsBinding.getResponseDestinationName())) { - error(monitor, "ActivationSpecAndDestinationMismatch", jmsBinding, jmsBinding.getResponseActivationSpecName(), jmsBinding.getResponseDestinationName()); - } - } // If activation spec exists with create=always, a jndiName must be specified if (JMSBindingConstants.CREATE_ALWAYS.equals(jmsBinding.getActivationSpecCreate()) && (jmsBinding.getActivationSpecName() == null)) { -- cgit v1.2.3