From 44873dc7cf035b00a3bbf562c0ff8ca645853bf1 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 14 Sep 2009 13:46:55 +0000 Subject: Update for OASIS change for connectionFactory name attribute to jndiName git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@814641 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/binding/jms/JMSBindingProcessor.java | 16 ++++++++-------- .../sca/binding/jms/JMSBindingProcessorTestCase.java | 4 ++-- .../binding/jms/JMSBindingProcessorWriteTestCase.java | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/java/sca/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java b/java/sca/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java index 4f8fbb6348..22b52faf9a 100644 --- a/java/sca/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java +++ b/java/sca/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java @@ -81,7 +81,7 @@ import org.apache.tuscany.sca.policy.PolicyFactory; * * * ? * - * + * * * * ? * @@ -94,7 +94,7 @@ import org.apache.tuscany.sca.policy.PolicyFactory; * * * ? * - * + * * * * ? * @@ -433,7 +433,7 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St } private void parseConnectionFactory(XMLStreamReader reader, JMSBinding jmsBinding) throws XMLStreamException { - String name = reader.getAttributeValue(null, "name"); + String name = reader.getAttributeValue(null, "jndiName"); if (name != null && name.length() > 0) { jmsBinding.setConnectionFactoryName(name); } else { @@ -479,7 +479,7 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St } private void parseResponseConnectionFactory(XMLStreamReader reader, JMSBinding jmsBinding) throws XMLStreamException { - String name = reader.getAttributeValue(null, "name"); + String name = reader.getAttributeValue(null, "jndiName"); if (name != null && name.length() > 0) { jmsBinding.setResponseConnectionFactoryName(name); } else { @@ -1315,7 +1315,7 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St /** * Writes connection factory properties if there are any. - * + * * * * ? */ @@ -1328,7 +1328,7 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St writer.writeStartElement(Constants.SCA11_NS, "connectionFactory"); if ( cfName != null && cfName.length() > 0) { - writer.writeAttribute("name", cfName); + writer.writeAttribute("jndiName", cfName); } String destinationCreate = jmsBinding.getConnectionFactoryCreate(); @@ -1422,7 +1422,7 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St /** * Writes response connection factory properties if there are any. - * + * * * * ? * @@ -1436,7 +1436,7 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St writer.writeStartElement(Constants.SCA11_NS, "connectionFactory"); if ( cfName != null && cfName.length() > 0) { - writer.writeAttribute("name", cfName); + writer.writeAttribute("jndiName", cfName); } String destinationCreate = jmsBinding.getResponseConnectionFactoryCreate(); diff --git a/java/sca/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorTestCase.java b/java/sca/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorTestCase.java index 8a25f99479..af985ed247 100644 --- a/java/sca/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorTestCase.java +++ b/java/sca/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorTestCase.java @@ -214,7 +214,7 @@ public class JMSBindingProcessorTestCase extends TestCase { + " " + " " + " " - + " " + + " " + " " + " some value text" + " " @@ -277,7 +277,7 @@ public class JMSBindingProcessorTestCase extends TestCase { + " " + " " + " " - + " " + + " " + " " + " some value text" + " " diff --git a/java/sca/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorWriteTestCase.java b/java/sca/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorWriteTestCase.java index f033887e5d..f5eede8f41 100644 --- a/java/sca/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorWriteTestCase.java +++ b/java/sca/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorWriteTestCase.java @@ -60,7 +60,7 @@ public class JMSBindingProcessorWriteTestCase extends TestCase { + " " + " " + " " - + " " + + " " + " " + " " + " " @@ -408,7 +408,7 @@ public class JMSBindingProcessorWriteTestCase extends TestCase { "" + "" + " " + - " "+ + " "+ " " + "" + "" + -- cgit v1.2.3