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:
Robert Davies 2006-11-13 19:54:40 +00:00
parent 9fcfa5c6d2
commit 55f4aad761
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}