Messages are not successful until they have been acknowledged. What are the types of acknowledgments?
1)Acknowledgment by commit. – Acknowledgement happens automatically when a transaction is committed.
2)Session.AUTO_ACKNOWLEDGE
3)Session.CLIENT_ACKNOWLEDGE – client must call the acknowledge( ) method
4)Session.DUPS_OK_ACKNOWLEDGE –Session acknowledges the message after
it has been delivered.This may result in the delivery of some duplicate
messages if the JMS provider fails.