antelder    2002/11/04 08:48:00

  Modified:    java/src/org/apache/wsif/util/jms Tag: pre1_2_0-patches
                        WSIFJMSProperties.java
  Log:
  Allow setting of the JMSType property
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.2   +3 -1      
xml-axis-wsif/java/src/org/apache/wsif/util/jms/WSIFJMSProperties.java
  
  Index: WSIFJMSProperties.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis-wsif/java/src/org/apache/wsif/util/jms/WSIFJMSProperties.java,v
  retrieving revision 1.5.2.1
  retrieving revision 1.5.2.2
  diff -u -r1.5.2.1 -r1.5.2.2
  --- WSIFJMSProperties.java    30 Oct 2002 16:41:56 -0000      1.5.2.1
  +++ WSIFJMSProperties.java    4 Nov 2002 16:47:59 -0000       1.5.2.2
  @@ -103,7 +103,7 @@
       private static final ArrayList predefinedProps = 
           new ArrayList(Arrays.asList(new Object[]{
            CORRELATIONID,DELIVERYMODE,DESTINATION,EXPIRATION,PRIORITY,
  -         REDELIVERED,REPLYTO,TIMESTAMP,TIMETOLIVE}));
  +         REDELIVERED,REPLYTO,TIMESTAMP,TIMETOLIVE, TYPE}));
   
       private String direction;
   
  @@ -175,6 +175,8 @@
                               message.setJMSTimestamp(((Long) value).longValue());
                           } else if (prop.equals(TIMETOLIVE)) {
                               producer.setTimeToLive(((Long) value).longValue());
  +                        } else if(prop.equals(TYPE)) {
  +                            message.setJMSType((String)value);
                           }
                       } catch (ClassCastException ce) {
                                        Trc.exception(ce);
  
  
  


Reply via email to