Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about acknowledge Mode in JMS

 
avseq anthoy
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all


In JMS Specification, The default acknowledge mode is AUTO_ACKNOWLEDGE.
The explanation as below

AUTO_ACKNOWLEDGE - With this option, the session automatically
acknowledges a client’s receipt of a message when it has either successfully
returned from a call to receive or the MessageListener it has called to process
the message successfully returns.


It means that when receiver calls to receive or onMessage in MessageListener process successfully ,
it will return a acknowledge to middleware to imply it receive message successfully.
The definition is only for receiver.

For the sender,
I want to understand that does the middleware send the acknowledge to sender when it receive the message
from sender successfully?
The JMS specification didn't mention it . But I seem to see some information about this(But I can't find it again)

Can someone explain the question to me?

Thanks
Best Regards
 
Ram Narayan.M
Ranch Hand
Posts: 247
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The acknowledgement message will be sent to JMS Service which sends the message to the receiver... So the end client sending the message does not know if the message has been delivered successfully to the receiver... All managed by JMS Service
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we have access to the server , can we see this Acknowledged Message ??

If so please specify the location , i am using weblogic 11 RI as my server .
 
Ran Pleasant
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi Kiran V wrote:If we have access to the server , can we see this Acknowledged Message ??

If so please specify the location , i am using weblogic 11 RI as my server .



Do you have a real need to see it? Think of the acknowledgement as similar to a transaction commit, all it is doing is letting the JMS system know that you did in fact receive the message so that it can stop trying to send the message to you. If for some reason it does not receive an acknowledgement then it will try to send the message again. My understanding is that the acknowledgement is not stored by JMS since it has no value once it is received and the message of out of the topic/queue.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ran , it was very informative .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic