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.pecho...@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