Hi Ivan,

the acknowledge is up to the container in case of MDBs.  Your onMessage()
method "acknowledges" the message by returning without throwing an
exception. Also the other way round: just throw an exception, and the
container will not acknowledge the message (an try to redeliver it).

-Stefan



On Mon, Apr 19, 2010 at 2:25 PM, Ivan Pechorin <ivan.pecho...@gmail.com>wrote:

>
> Hello
>
> We have a message-driven bean in JBoss with ActiveMQ resource adapter (RA).
> It seems like ActiveMQ RA doesn't support CLIENT_ACKNOWLEDGE mode. It
> supports only DUPS_OK_ACKNOWLEDGE and AUTO_ACKNOWLEDGE modes.
>
> Basically, I need to be able to leave a message in queue if something bad
> happened inside method onMessage() of my MDB. How can I achieve this?
>
> P.S. Any help of link to proper piece of documentation is highly
> appreciated
> (I failed to find it).
>
> Best regards, Ivan
> --
> View this message in context:
> http://old.nabble.com/ActiveMQ-RA%3A-how-to-make-MDB-with-CLIENT_ACKNOWLEDGE--tp28287660p28287660.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Reply via email to