Skip to content

Commit

Permalink
Use passed-in destination, not property
Browse files Browse the repository at this point in the history
References #26
  • Loading branch information
acogoluegnes committed Jun 20, 2017
1 parent 6511cf6 commit 92374b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/rabbitmq/jms/client/RMQMessageProducer.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public void send(Message message, int deliveryMode, int priority, long timeToLiv
@Override
public void send(Destination destination, Message message) throws JMSException {
this.checkUnidentifiedMessageProducer(destination);
this.sendingStrategy.send(this.destination, message);
this.sendingStrategy.send(destination, message);
}

private void checkUnidentifiedMessageProducer(Destination destination) {
Expand Down Expand Up @@ -364,7 +364,7 @@ public void send(Queue queue, Message message, int deliveryMode, int priority, l
*/
@Override
public void send(Queue queue, Message message) throws JMSException {
this.sendingStrategy.send(this.destination, message);
this.sendingStrategy.send(queue, message);
}

/**
Expand Down

0 comments on commit 92374b3

Please sign in to comment.