tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r981431 - /tuscany/sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java
Date Mon, 02 Aug 2010 09:42:31 GMT
Author: antelder
Date: Mon Aug  2 09:42:30 2010
New Revision: 981431

URL: http://svn.apache.org/viewvc?rev=981431&view=rev
Log:
Support the other jms properties in the jms uri

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=981431&r1=981430&r2=981431&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
Mon Aug  2 09:42:30 2010
@@ -367,6 +367,12 @@ public class JMSBindingProcessor extends
         	    String s = st.nextToken();
         	    if (s.startsWith("connectionFactoryName=")) {
         	        jmsBinding.setConnectionFactoryName(s.substring(22));
+                    } else if (s.startsWith("deliveryMode=")) {
+                        jmsBinding.setJMSDeliveryMode("persistent".equals(s.substring(14)));
+                    } else if (s.startsWith("priority=")) {
+                        jmsBinding.setJMSPriority(Integer.parseInt(s.substring(9)));
+                    } else if (s.startsWith("timeToLive=")) {
+                        jmsBinding.setJMSTimeToLive(Long.parseLong(s.substring(11)));
         	    } else {
         	        error(monitor, "UnknownTokenInURI", jmsBinding, s, uri);
                  	return;



Mime
View raw message