[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: new QueueBrowser implementation

ataylor do-not-reply at jboss.com
Fri Oct 17 04:47:56 EDT 2008


anonymous wrote : Why do you need to do that? 

I don't when i change it the way you suggest.

anonymous wrote : Can't you use the current receiveImmediate() method to do that? 

This wouldn't work in all cases since there may be messages in transit or waiting to be delivered. typically if you create a consumer and call receive Immediate straight away the first message hasn't arrived yet. Also a fast consumer may consume messages quicker than they are delivered internally.

anonymous wrote : Well, I hope you agree it's simpler and avoids code duplication too ;)

I do agree, i just wish either 1. I'd thought of it, or b. you'd suggested it earlier.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182850#4182850

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182850



More information about the jboss-dev-forums mailing list