mirror of https://github.com/apache/activemq.git
Apply patch for https://issues.apache.org/activemq/browse/AMQ-1620
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@646299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c338d3e0e5
commit
d77d82e33d
|
@ -70,12 +70,16 @@ public class CompositeDestinationFilter extends DestinationFilter {
|
|||
continue;
|
||||
}
|
||||
|
||||
Message forwarded_message;
|
||||
if (copyMessage) {
|
||||
message = message.copy();
|
||||
message.setDestination(destination);
|
||||
forwarded_message = message.copy();
|
||||
forwarded_message.setDestination(destination);
|
||||
}
|
||||
else {
|
||||
forwarded_message = message;
|
||||
}
|
||||
|
||||
send(context, message, destination);
|
||||
send(context, forwarded_message, destination);
|
||||
}
|
||||
if (!forwardOnly) {
|
||||
super.send(context, message);
|
||||
|
|
Loading…
Reference in New Issue