tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1230972 - /tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
Date Fri, 13 Jan 2012 10:06:41 GMT
Author: antelder
Date: Fri Jan 13 10:06:41 2012
New Revision: 1230972

URL: http://svn.apache.org/viewvc?rev=1230972&view=rev
Log:
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

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java?rev=1230972&r1=1230971&r2=1230972&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
Fri Jan 13 10:06:41 2012
@@ -401,6 +401,12 @@ public class JMSBindingProcessor extends
             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),"&");



Mime
View raw message