Пример #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));
   }
 }
Пример #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);
    }
  }
Пример #3
0
 public static void setJMSType(Message message, String type) {
   message.putStringProperty(TYPE_HEADER_NAME, new SimpleString(type));
 }