On Dec 1, 2007 7:59 PM, youhaodeyi <[EMAIL PROTECTED]> wrote:
>
> Thanks. But this one didn't mention how to configure it in configuration file

There are two examples at the bottom of this page:

http://activemq.apache.org/message-cursors.html

If you look at the Javadocs for the PolicyEntry it's pretty easy to figure out:

http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/region/policy/PolicyEntry.html

The default conf/activemq.xml configuration file already contains a
policyEntry element representing the PolicyEntry Java object. Notice
that the PolicyEntry object has a setDeadLetterStrategy() method. This
means that you can add a child element named deadLetterStrategy like
so:

...
<policyEntry>
  <deadLetterStrategy>
    <!-- Add your own dead letter strategy here and configure it -->
  </deadLetterStrategy>
</policyEntry>
...

Then you just add your preferred DeadLetterStrategy implementation
where the comment is located above. The various implementations are
listed below:

http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/region/policy/IndividualDeadLetterStrategy.html
http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/broker/region/policy/SharedDeadLetterStrategy.html

HTH

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/

Reply via email to