activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Kleineikenscheidt (K15t Software)" <ste...@k15t.com>
Subject Re: ActiveMQ RA: how to make MDB with CLIENT_ACKNOWLEDGE?
Date Mon, 19 Apr 2010 12:35:15 GMT
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.pechorin@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.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message