anonymous wrote : The iterator needs to be clever enough that if messages are removed when
it tries to go to the next one, it reverts back to the beginning of the queue.
I don't see how its that simple, if you take the simplest scenario, i.e. only 1
priority list in the queue and you're current index is 5, if you remove a message from
the queue you need to move to current index - 1 not the beginning of the queue. If you
have multiple priority lists then you need to remember where you are in each list updating
the position as each list is modified. for this to work you then need to synchronize the
access methods in the list and iterator.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181493#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...