You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to fork this and add X-DEAD-LETTER-EXCHANGE and X-DEAD-LETTER-ROUTING-KEY. This will enable direct to queue messages where there is a dead letter attached. I have added fields to AMQPSampler.java and AMQPSamplerGui.java is there anything else I need to update?
When I publish messages with this amended code I see messages land on the Rabbit Overview page but the message does not arrive in the queue (with an attached DEAD LETTER linked)
I've added to AMQPSampler.java
private static final String X_DEAD_LETTER_EXCHANGE = "AMQPSampler.XDeadLetterExchange";
private static final String X_DEAD_LETTER_ROUTING_KEY = "AMQPSampler.XDeadLetterRoutingKey";
public static final String DEFAULT_X_DEAD_LETTER_EXCHANGE = "jmeterDeadLetterExchange";
public static final String DEFAULT_X_DEAD_LETTER_ROUTING_KEY = "jmeterDeadLetterRoutingKey";
if (getXDeadLetterExchange() != null && !getXDeadLetterExchange().isEmpty()) {
arguments.put("x-dead-letter-exchange", getXDeadLetterExchange());
}
if (getXDeadLetterRoutingKey() != null && !getXDeadLetterRoutingKey().isEmpty()) {
arguments.put("x-dead-letter-routing-key", getXDeadLetterRoutingKey());
}
public String getXDeadLetterRoutingKey() {
return getPropertyAsString(X_DEAD_LETTER_ROUTING_KEY);
}
public void setXDeadLetterExchange(String name) {
setProperty(X_DEAD_LETTER_EXCHANGE, name);
}
public void setXDeadLetterRoutingKey(String name) {
setProperty(X_DEAD_LETTER_ROUTING_KEY, name);
}
I'm trying to fork this and add X-DEAD-LETTER-EXCHANGE and X-DEAD-LETTER-ROUTING-KEY. This will enable direct to queue messages where there is a dead letter attached. I have added fields to AMQPSampler.java and AMQPSamplerGui.java is there anything else I need to update?
When I publish messages with this amended code I see messages land on the Rabbit Overview page but the message does not arrive in the queue (with an attached DEAD LETTER linked)
I've added to AMQPSampler.java
Added the following to AMQPSamplerGui.java
Amended GUI showing new fields.
The text was updated successfully, but these errors were encountered: