[activemq-user] Rollback question

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[activemq-user] Rollback question

COURTAULT Francois
Hello,

Does it exist a property that specifies the number  of times a message
can be rollbacked before it will be removed ?

How to configure the broker to not remove a message after a rollback ?

Regards.
Reply | Threaded
Open this post in threaded view
|

Re: [activemq-user] Rollback question

jstrachan

On 22 Jun 2005, at 01:06, COURTAULT Francois wrote:

> Hello,
>
> Does it exist a property that specifies the number  of times a message
> can be rollbacked before it will be removed ?
>
> How to configure the broker to not remove a message after a rollback ?

If ever you're wondering how to configure something, a handy bit of  
documentation is the activemq.dtd...

http://activemq.org/dtd/activemq.dtd

Which documents all the various options in the XML configuration  
file. So to configure delivery policy such as how many times  
something is redelivered before being sent to a dead letter queue,  
try these options...


<!--
     This policy configures how messages should be redelivered
   if a rollback() occurs due to either the message being corrupted
   or some dependent system resource (database or back end system) being
   unavailable when the message was delivered.
-->
<!ELEMENT redeliveryPolicy (
         description?,
         (property)*
)>

<!ATTLIST redeliveryPolicy class CDATA #IMPLIED>

<!--
   how many times will a message be redelivered before
   being sent to a Dead Letter Queue
-->
<!ATTLIST redeliveryPolicy maximumRetryCount CDATA #IMPLIED>

<!--
   If enabled, back off mode uses an increasing rate of timeouts
-->
<!ATTLIST redeliveryPolicy backOffMode (true | false) "true">

<!--
   The initial timeout for redelivery
-->
<!ATTLIST redeliveryPolicy initialRedeliveryTimeout CDATA #IMPLIED>

<!--
   The rate of increase in the timeout
-->
<!ATTLIST redeliveryPolicy backOffIncreaseRate CDATA #IMPLIED>

James
-------
http://radio.weblogs.com/0112098/

Reply | Threaded
Open this post in threaded view
|

Re: [activemq-user] Rollback question

Tinto1986
Even I experienced same problem with this. Unable to solve yet..:(
Help your self by fighting with ED using Generic Viagra 100mg