summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-jms
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-01-13 10:06:41 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-01-13 10:06:41 +0000
commita38d708407bab7f1520f7c9e21d36246681f061f (patch)
tree5abe53377078da8f3a4649915f8d17b7b61b4123 /sca-java-2.x/trunk/modules/binding-jms
parentba65724b7648a1f81d5dd7fd9649e7824a4b3d22 (diff)
When using the JMS URI form to identify JMS resources the resources MUST exist, so ensure the binding has all the create flags set correctly
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1230972 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jms')
-rw-r--r--sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java6
1 files changed, 6 insertions, 0 deletions
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 04b4f43f64..676d9b750b 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
@@ -401,6 +401,12 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St
error(monitor, "MustStartWithSchema", jmsBinding, uri);
return;
}
+
+ jmsBinding.setDestinationCreate(JMSBindingConstants.CREATE_NEVER);
+ jmsBinding.setResponseDestinationCreate(JMSBindingConstants.CREATE_NEVER);
+ jmsBinding.setConnectionFactoryCreate(JMSBindingConstants.CREATE_NEVER);
+ jmsBinding.setResponseConnectionFactoryCreate(JMSBindingConstants.CREATE_NEVER);
+
int i = uri.indexOf('?');
if (i >= 0) {
StringTokenizer st = new StringTokenizer(uri.substring(i+1),"&");