Fix so that we can get the messages.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@384255 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-03-08 16:27:16 +00:00
parent 4aa503f4af
commit 5d9d499e66
1 changed files with 1 additions and 0 deletions

View File

@ -432,6 +432,7 @@ public class Queue implements Destination {
for (Iterator iter = messages.iterator(); iter.hasNext();) {
try {
MessageReference r = (MessageReference) iter.next();
r.incrementReferenceCount();
try {
Message m = r.getMessage();
if (m != null) {