Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need explanation related to Session.AUTO_ACKNOWLEDGE

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

We are using Session.AUTO_ACKNOWLEDGE in our Application while creating the session

Hi

As per the API of SUN this mode states that

With this acknowledgment mode, the session automatically acknowledges a client's receipt of a message either when the session has successfully returned from a call to receive or when the message listener the session has called to process the message successfully returns.

Does this mean that the client will get any Alert Message say for example when the message is picked up by the Message Driven Bean ??

Please share your ideas on this

Thanks in advance .
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi Kiran V wrote:

Does this mean that the client will get any Alert Message say for example when the message is picked up by the Message Driven Bean ??



Not sure what that question means. Can you please elaborate?
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean to ask taht when the message is successfully processed by the MDB , how will the user get an Acknowledgement ??

how he gets Acknowledgement and does we need to do anything to handle the Acknowledgement ??


Thanks in advance .
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi Kiran V wrote:I mean to ask taht when the message is successfully processed by the MDB , how will the user get an Acknowledgement ??

how he gets Acknowledgement and does we need to do anything to handle the Acknowledgement ??



The acknowledgement is to the JMS Server so that the message can be removed from the queue.

ram.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic