You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-dev@ws.apache.org by wh...@apache.org on 2003/04/07 12:03:41 UTC
cvs commit: xml-axis-wsif/java/src/org/apache/wsif/providers/jms JMSMessage.java
whitlock 2003/04/07 03:03:41
Modified: java/src/org/apache/wsif/providers/jms JMSMessage.java
Log:
Add extra trace
Revision Changes Path
1.17 +14 -9 xml-axis-wsif/java/src/org/apache/wsif/providers/jms/JMSMessage.java
Index: JMSMessage.java
===================================================================
RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/jms/JMSMessage.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- JMSMessage.java 30 Jan 2003 14:24:44 -0000 1.16
+++ JMSMessage.java 7 Apr 2003 10:03:41 -0000 1.17
@@ -313,7 +313,8 @@
// Put contents into the message
message.setText(msgContents);
}
-
+ Trc.event(this, message.getText());
+
} catch (JMSException e) {
Trc.exception(e);
throw new WSIFException("Error in write.", e);
@@ -410,6 +411,7 @@
}
message.setObject(result);
}
+ Trc.event(this, message.getObject());
} catch (JMSException e) {
Trc.exception(e);
@@ -450,6 +452,7 @@
boolean wsifFormat = false;
try {
+ Trc.event(this, message.getText());
// Read the text into the document
javax.xml.parsers.DocumentBuilderFactory factory =
@@ -604,6 +607,7 @@
throw new WSIFException("Unable to support non Java encodings in a JMS Object Message");
try {
+ Trc.event(this, message.getObject());
Object object = message.getObject();
Object[] partNames =
fieldMessageParts != null
@@ -736,18 +740,19 @@
try {
// no type exists or it is not a XSD primitive type
if (isSchemaNamespace(partType.getNamespaceURI())
- && isXSDPrimitiveType(partType.getLocalPart()))
+ && isXSDPrimitiveType(partType.getLocalPart())) {
fh =
new PrimitiveTypeFormatHandler(
(Class) PRIMITIVE_JAVA_MAPPING.get(
partType.getLocalPart().toLowerCase()));
- else
- fh = (JMSFormatHandler)
- //antxxx org.apache.wsif.jca.util.JCAUtil.getFormatHandler(
- WSIFUtils.getFormatHandler(
- partModel,
- this.fieldDefinitionModel,
- this.fieldBindingModel);
+ } else {
+ //antxxx fh = org.apache.wsif.jca.util.JCAUtil.getFormatHandler(
+ fh =
+ (JMSFormatHandler) WSIFUtils.getFormatHandler(
+ partModel,
+ this.fieldDefinitionModel,
+ this.fieldBindingModel);
+ }
} catch (java.lang.Exception e) {
Trc.exception(e);
}