diff options
author | bdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68> | 2010-10-20 21:08:56 +0000 |
---|---|---|
committer | bdaniel <bdaniel@13f79535-47bb-0310-9956-ffa450edef68> | 2010-10-20 21:08:56 +0000 |
commit | 481031ebbed27c38f02bd3259c341308724c5cce (patch) | |
tree | 7a5a32aa879eb576bb9bd54966ce39de20ca5f41 /sca-java-2.x/trunk/modules/binding-jms/src | |
parent | d5a65eb652f6359e30b7e7a6f0db9ad07fdcd497 (diff) |
TUSCANY_3738 Fix parsing of property type attributes ( BJM_3025.1, BJM_3025.2 )
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1025750 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jms/src')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-jms/src/main/java/org/apache/tuscany/sca/binding/jms/JMSBindingProcessor.java | 8 |
1 files changed, 6 insertions, 2 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 e40a16f9a5..97dfd5f4cf 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 @@ -732,9 +732,12 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St private void parseProperty(XMLStreamReader reader, JMSBinding jmsBinding) throws XMLStreamException { jmsBinding.setHeaders( true ); String name = reader.getAttributeValue(null, "name"); - String type = reader.getAttributeValue(null, "type"); + QName typeName = StAXHelper.getAttributeAsQName(reader, "type"); + String type = typeName == null ? null : typeName.getLocalPart(); + if (name != null && name.length() > 0) { Object value = reader.getElementText(); + if ("boolean".equalsIgnoreCase(type)) { value = Boolean.parseBoolean((String)value); } else if ("byte".equalsIgnoreCase(type)) { @@ -872,7 +875,8 @@ public class JMSBindingProcessor extends BaseStAXArtifactProcessor implements St private void parseOperationPropertyProperties(XMLStreamReader reader, JMSBinding jmsBinding, String opName) throws XMLStreamException { String propName = reader.getAttributeValue(null, "name"); - String type = reader.getAttributeValue(null, "type"); + QName typeName = StAXHelper.getAttributeAsQName(reader, "type"); + String type = typeName == null ? null : typeName.getLocalPart(); if (propName != null && propName.length() > 0) { Object value = reader.getElementText(); if ("boolean".equalsIgnoreCase(type)) { |