mirror of https://github.com/apache/activemq.git
check that Queue messages aren't acknowledged before applying a filter
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@474469 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9fcfa5c6d2
commit
55f4aad761
|
@ -58,7 +58,9 @@ public class NetworkBridgeFilter implements DataStructure, BooleanExpression {
|
|||
|
||||
public boolean matches(MessageEvaluationContext message) throws JMSException{
|
||||
try{
|
||||
return matchesForwardingFilter(message.getMessage());
|
||||
//for Queues - the message can be acknowledged and dropped whilst still
|
||||
//in the dispatch loop
|
||||
return message.getMessage() != null && matchesForwardingFilter(message.getMessage());
|
||||
}catch(IOException e){
|
||||
throw JMSExceptionSupport.create(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue