aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Supported Acknowledgement modes in MDB.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Supported Acknowledgement modes in MDB.." Watch "Supported Acknowledgement modes in MDB.." New topic
Author

Supported Acknowledgement modes in MDB..

Kuppusamy Venkatasubramanian
Ranch Hand

Joined: Dec 30, 2004
Posts: 91
Hi,

While going through EJB 3 in Action, i found that the supported acknowledgement modes for MDB are AUTO_ACKNOWLEDGE and DUPS_OK_ACKNOWLEDGE. CLIENT_ACKNOWLEDGE and SESSION_ACKNOWLEDGE are not supported as per page 130. Since the message is available in onMessage() method, i can still call message.acknowledge() which means CLIENT_ACKNOWLEDGE is working with MDB. Please correct me if i am wrong. So, CLIENT_ACKNOWLEDGE mode should be applicable to MDB. Why the it is classified as not supported with MDB?

Thanks in advance,
Kuppusamy.V.,
sivan jai
Ranch Hand

Joined: Feb 24, 2010
Posts: 115
Acknowledge modes are mostly ignored by the container. I think it mostly vendor dependent - for example in Jboss I have tried and it always retries messages when there is an exception regarless of acknowledge modes or transaction attributes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Supported Acknowledgement modes in MDB..