activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: ActiveMQ RA and client acknowledge in a message-driven bean
Date Wed, 21 Apr 2010 09:03:55 GMT
Use a transacted delivery in your endpoint activation and throw an exception
from onMessage. if you have the source, take a peek at this test:
org.apache.activemq.ra.MDBTest.testMessageExceptionReDelivery


On 21 April 2010 06:02, Ivan Pechorin <ivan.pechorin@gmail.com> wrote:

> Hello!
>
> I use JBoss, ActiveMQ resource adapter (RA), and a message-driven bean
> (MDB) with a persistent queue.
> I need to be able to leave a message in queue if something bad
> happened inside method onMessage() of my MDB.
> The question is how to achieve it?
>
> I looked into the source of ActiveMQ RA, and it looks like it doesn't
> support CLIENT_ACKNOWLEDGE mode. Only DUPS_OK_ACKNOWLEDGE and
> AUTO_ACKNOWLEDGE are supported.
>
>
> P.S. Any help of link to proper piece of documentation is highly
> appreciated (I failed to find it).
>
> Best regards, Ivan
>



-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

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