anonymous wrote : 1) Why are the methods stop, start, restart, and the extra logic around
"messagesWaiting", and the extra server consumer start and stop necessary in the
ClientBrowserImpl?
This to stop delivery of messages and wait for any in transit messages are received before
restarting with a new iterator. messagesWaiting is so we can figure out if any messages
are left to browse.
anonymous wrote : A simpler solution would have been to take the copied Set of refs from
the queue.list() method, and then instantiate a QueueImpl instance on the fly and just
have the consumer consume from that, or create a simple class that just iterates the set
and get it to call the handle() method of ServerConsumer, then you wouldn't need to
duplicate the code.
Ok, I can do it this way if you prefer.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182843#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...