Beispiel #1
0
 public static void setJMSCorrelationID(Message message, final String correlationID) {
   if (correlationID == null) {
     message.removeProperty(CORRELATIONID_HEADER_NAME);
   } else {
     message.putStringProperty(CORRELATIONID_HEADER_NAME, new SimpleString(correlationID));
   }
 }
Beispiel #2
0
  public static void setJMSReplyTo(Message message, final SimpleString dest) {

    if (dest == null) {
      message.removeProperty(REPLYTO_HEADER_NAME);
    } else {

      message.putStringProperty(REPLYTO_HEADER_NAME, dest);
    }
  }
Beispiel #3
0
 public static void setJMSType(Message message, String type) {
   message.putStringProperty(TYPE_HEADER_NAME, new SimpleString(type));
 }