From bb5a6f2b366f11f6c93823ffecc88110b5d8775b Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 6 Oct 2010 10:55:48 +0000 Subject: Correct jms uri connection fatory attribute git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1004985 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk') 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 5cbfbefdb1..e40a16f9a5 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,8 +368,8 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St StringTokenizer st = new StringTokenizer(uri.substring(i+1),"&"); while (st.hasMoreTokens()) { String s = st.nextToken(); - if (s.startsWith("connectionFactoryName=")) { - jmsBinding.setConnectionFactoryName(s.substring(22)); + if (s.startsWith("jndiConnectionFactoryName=")) { + jmsBinding.setConnectionFactoryName(s.substring(26)); } else if (s.startsWith("deliveryMode=")) { jmsBinding.setURIJMSDeliveryMode("persistent".equals(s.substring(13))); } else if (s.startsWith("priority=")) { -- cgit v1.2.3