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)); } }
public static void setJMSReplyTo(Message message, final SimpleString dest) { if (dest == null) { message.removeProperty(REPLYTO_HEADER_NAME); } else { message.putStringProperty(REPLYTO_HEADER_NAME, dest); } }
public static void setJMSType(Message message, String type) { message.putStringProperty(TYPE_HEADER_NAME, new SimpleString(type)); }