Skip to content

Commit

Permalink
Fix compile error from PR #23
Browse files Browse the repository at this point in the history
  • Loading branch information
jlavallee committed Apr 15, 2015
1 parent fa8fc2d commit 49aa1d5
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/main/java/com/zeroclue/jmeter/protocol/amqp/AMQPPublisher.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,19 @@ protected AMQP.BasicProperties getProperties() {
AMQP.BasicProperties.Builder builder = new AMQP.BasicProperties.Builder();

int deliveryMode = getPersistent() ? 2 : 1;
String messageId = getMessageId().isEmpty() ? parentProps.getMessageId() : getMessageId();

return builder
.contentType("text/plain")
.deliveryMode(deliveryMode)
.priority(0)
.correlationId(getCorrelationId())
.replyTo(getReplyToQueue())
.type(getMessageType())
.headers(prepareHeaders())
.messageId(messageId)
.build();
builder.contentType("text/plain")
.deliveryMode(deliveryMode)
.priority(0)
.correlationId(getCorrelationId())
.replyTo(getReplyToQueue())
.type(getMessageType())
.headers(prepareHeaders())
.build();
if (getMessageId() != null && getMessageId().isEmpty()) {
builder.messageId(getMessageId());
}
return builder.build();
}

protected boolean initChannel() throws IOException, NoSuchAlgorithmException, KeyManagementException {
Expand Down

0 comments on commit 49aa1d5

Please sign in to comment.