mirror of https://github.com/apache/activemq.git
ensure the ConectionContext always has a broker set before sending message to DLQ
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@572300 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0a52fe7289
commit
1195ae751c
|
@ -664,6 +664,9 @@ public class RegionBroker implements Broker {
|
|||
ActiveMQDestination deadLetterDestination=deadLetterStrategy
|
||||
.getDeadLetterQueueFor(message
|
||||
.getDestination());
|
||||
if (context.getBroker()==null) {
|
||||
context.setBroker(getRoot());
|
||||
}
|
||||
BrokerSupport.resend(context,message,
|
||||
deadLetterDestination);
|
||||
sent=true;
|
||||
|
|
Loading…
Reference in New Issue