diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-11-03 14:45:25 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-11-03 14:45:25 +0000 |
commit | fca59df9050b475b118941302c3adf66c4bb0f3b (patch) | |
tree | 85594f929e7b9f0141c3f2ac9813bb656f4a98ce | |
parent | 5b4f1cec4fca0ffda61bb5f0ff951019cdf40248 (diff) |
TUSCANY-3972 JMSBIndingProcessor.writeDestinationProperties should handle Destination Type
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1197162 13f79535-47bb-0310-9956-ffa450edef68
2 files changed, 5 insertions, 6 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 a428af8812..de5842c9c3 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 @@ -1421,11 +1421,10 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St writer.writeAttribute("jndiName", destinationName); } - // Type not handled yet - // String destinationType = jmsBinding.getDestinationType(); - // if ( destinationType != null && destinationType.length() > 0) { - // writer.writeAttribute("type", destinationType); - // } + String destinationType = jmsBinding.getDestinationType(); + if ( destinationType != null && destinationType.length() > 0) { + writer.writeAttribute("type", destinationType); + } String destinationCreate = jmsBinding.getDestinationCreate(); if ( destinationCreate != null && destinationCreate.length() > 0 && diff --git a/sca-java-2.x/trunk/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorWriteTestCase.java b/sca-java-2.x/trunk/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorWriteTestCase.java index db138aa30d..5fdbd57338 100644 --- a/sca-java-2.x/trunk/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorWriteTestCase.java +++ b/sca-java-2.x/trunk/modules/binding-jms/src/test/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessorWriteTestCase.java @@ -404,7 +404,7 @@ public class JMSBindingProcessorWriteTestCase extends TestCase { "<component name=\"HelloWorldComponent\">" + "<service name=\"HelloWorldService\">" + "<binding.jms><operationProperties name=\"JKL\" /> " + - "<destination jndiName=\"AAA\">" + + "<destination jndiName=\"AAA\" type=\"queue\">" + "<property name=\"AAAProp\" type=\"string\"></property>" + "</destination> " + "<connectionFactory jndiName=\"ABC\" /> "+ |