You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by an...@apache.org on 2002/11/01 18:15:03 UTC
cvs commit: xml-axis-wsif/java/src/org/apache/wsif/util/jms WSIFJMSProperties.java
antelder 2002/11/01 09:15:03
Modified: java/src/org/apache/wsif/util/jms WSIFJMSProperties.java
Log:
Allow setting the JMSType property
Revision Changes Path
1.7 +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.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- WSIFJMSProperties.java 30 Oct 2002 15:42:22 -0000 1.6
+++ WSIFJMSProperties.java 1 Nov 2002 17:15:03 -0000 1.7
@@ -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);