diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-02 12:35:14 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-02 12:35:14 +0000 |
commit | d789dc692655e401f694e4d8082f8ee0ce35744c (patch) | |
tree | 7c1df80028572f75bf5583b0962efee63e0b1da0 /sca-java-2.x/trunk/modules/binding-jms/src/main/java | |
parent | 391140e8dec537803b10fa56e3201fbbd7149f6a (diff) |
Correct delivery mode setting, add option to set jms type
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@991914 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jms/src/main/java')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java | 4 |
1 files changed, 3 insertions, 1 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 00d42ef785..9ea6b3a001 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 @@ -368,11 +368,13 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St if (s.startsWith("connectionFactoryName=")) { jmsBinding.setConnectionFactoryName(s.substring(22)); } else if (s.startsWith("deliveryMode=")) { - jmsBinding.setJMSDeliveryMode("persistent".equals(s.substring(14))); + jmsBinding.setJMSDeliveryMode("persistent".equals(s.substring(13))); } 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 if (s.startsWith("type=")) { + jmsBinding.setJMSType((s.substring(5))); } else if (s.startsWith("selector='")) { String selector = s.substring(10); if (selector.startsWith("\"") || selector.startsWith("'")) { |