From a79580f2396b2f1ff99f219a852bf301b6d77155 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 2 Aug 2010 09:42:30 +0000 Subject: Support the other jms properties in the jms uri git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@981431 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache') 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 569f23c957..5369b81d3f 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 @@ -367,6 +367,12 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St 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; -- cgit v1.2.3