-
1. Re: How to request the queue one by one from receiver?
thoennes Mar 14, 2006 5:17 AM (in response to chwang)If you have auto-acknowledgement enabled, the client acks every message received automatically.
If you use onMessage() to process your messages, the ACK is send on returning from onMessage(). So if you do all your processing inside onMessage(), the single ACK will be send after each processing step.
On the other hand, if you use receive(), then the ACK has been already sent if receive() has returned.
Since I do not know the internal implementation of the JBoss IL very well, this is not the full story.
Hope that helps a bit, Jörg -
2. Re: How to request the queue one by one from receiver?
chwang Mar 14, 2006 12:06 PM (in response to chwang)Thank you very much.
it is very helpful.
I still have one question.
I winder what is purpose to use CLIENT_ACKNOWLEDGE.
Because using auto_ack is simple and fast.
Why to use CLIENT_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE.
Chwang -
3. Re: How to request the queue one by one from receiver?
adrian.brock Mar 17, 2006 6:38 AM (in response to chwang)Questions answered in the spec, are not answered here.
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossHelp -
4. Re: How to request the queue one by one from receiver?
chwang Mar 17, 2006 12:03 PM (in response to chwang)Thank you. it is really useful.