axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whitl...@apache.org
Subject cvs commit: xml-axis-wsif/java/src/org/apache/wsif/providers/jms JMSMessage.java
Date Mon, 02 Dec 2002 13:36:13 GMT
whitlock    2002/12/02 05:36:13

  Modified:    java/src/org/apache/wsif/providers/jms JMSMessage.java
  Log:
  Bug fix for multiple parts that are jms properties
  
  Revision  Changes    Path
  1.14      +4 -3      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.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- JMSMessage.java	30 Oct 2002 15:42:22 -0000	1.13
  +++ JMSMessage.java	2 Dec 2002 13:36:12 -0000	1.14
  @@ -612,8 +612,7 @@
                   return;
   
               // Check to see if it is a known format
  -            if (object instanceof java.util.Map
  -                && ((java.util.Map) object).containsKey(partNames[0])) {
  +            if (object instanceof java.util.Map) {
                   // Need to make the message mutable			
                   message.clearBody();
   
  @@ -663,7 +662,9 @@
                   if (partNames.length != 1)
                       throw new WSIFException(
                           "There should only be one part defined in "
  -                            + fieldMessageModel.getQName().getLocalPart());
  +                            + fieldMessageModel.getQName().getLocalPart()
  +                            + " or the JMS ObjectMessage should be a Map of "
  +                            + "all the parts in the message");
   
                   String partName = partNames[0].toString();
   
  
  
  

Mime
View raw message