git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@646477 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-04-09 18:37:26 +00:00
parent 510bf9b5da
commit b4c3a30b9e
1 changed files with 3 additions and 0 deletions

View File

@ -165,6 +165,9 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
throw new InvalidDestinationException(
"Cannot use a Temporary destination that has been deleted");
}
if (prefetch < 0) {
throw new JMSException("Cannot have a prefetch size less than zero");
}
}
this.session = session;