java - How to acknowledge messages in Message Driven Beans -


in jms documentation read message driven beans doesn't support client_acknowledge mode, dups_ok_acknowledge , auto_acknowledge.

as understand it, in auto_acknowledge mode, message acknowledged (deleted destination) when onmessage method invoked. want tell broker not delete messages destination (queue or topic) when bad happens

there must way this. anyway, why client_acknowledge not supported in message drven beans.

what want tell broker not delete messages destination (queue or topic) when bad happens.

if you're configured use persistent messages, exceptions in onmessage() persist message redelivery based on broker , destination settings. if you're using non_persistent messages, exception in onmessage() typically discards message.

anyway, why client_acknowledge not supported in message driven beans.

message-driven beans managed j2ee container; such, container handles acknowledgements. typically, stand-alone jms receivers should use client_acknowledge.

what messaging middleware using?


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -