There were a few more issues too:
1) The copy queue was being created using the createQueue method which would also bind it
in the post office. This is unnecessary - all we want is a simple in memory copy we can
browse
2) The queueCopyLock was unnecessary - the list() method on Queue is already
synchronized.
3) New references were being created before adding them to the copy queue. Since the
browser queue refs would never get acknowledged, this would prevent the messages from ever
getting deleted from the journal.
I have fixed the code and committed.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183042#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...