This is an automated email from the ASF dual-hosted git repository. pmouawad pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push: new 8b43d6a Set JMSType header field through JMSProperties. (#600) 8b43d6a is described below commit 8b43d6a7f6f675a3c629d372052c66ab0005cd17 Author: topicus-pw-dvdouden <67269601+topicus-pw-dvdou...@users.noreply.github.com> AuthorDate: Wed Jun 24 08:45:43 2020 +0200 Set JMSType header field through JMSProperties. (#600) * Set JMSType header field through JMSProperties. * Fixed indenting This fixes https://bz.apache.org/bugzilla/show_bug.cgi?id=64555 --- .../jms/src/main/java/org/apache/jmeter/protocol/jms/Utils.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/protocol/jms/src/main/java/org/apache/jmeter/protocol/jms/Utils.java b/src/protocol/jms/src/main/java/org/apache/jmeter/protocol/jms/Utils.java index 8b2917b..9b8971f 100644 --- a/src/protocol/jms/src/main/java/org/apache/jmeter/protocol/jms/Utils.java +++ b/src/protocol/jms/src/main/java/org/apache/jmeter/protocol/jms/Utils.java @@ -229,9 +229,12 @@ public final class Utils { log.debug("Adding property [" + name + "=" + value + "]"); } - // WebsphereMQ does not allow corr. id. to be set using setStringProperty() + // Some JMS implemenations do not allow certain header fields to be set using properties + // e.g.: WebsphereMQ does not allow corr. id. to be set using setStringProperty() if ("JMSCorrelationID".equalsIgnoreCase(name)) { // $NON-NLS-1$ msg.setJMSCorrelationID((String)value); + } else if ("JMSType".equalsIgnoreCase(name)) { // $NON-NLS-1$ + msg.setJMSType((String)value); } else { msg.setObjectProperty(name, value); }