added a handy constant for the default DLQ name

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@689022 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2008-08-26 10:32:42 +00:00
parent 323bb2309e
commit 8813f2b658
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ import org.apache.activemq.command.ActiveMQQueue;
*/ */
public class SharedDeadLetterStrategy extends AbstractDeadLetterStrategy { public class SharedDeadLetterStrategy extends AbstractDeadLetterStrategy {
private ActiveMQDestination deadLetterQueue = new ActiveMQQueue("ActiveMQ.DLQ"); public static final String DEFAULT_DEAD_LETTER_QUEUE_NAME = "ActiveMQ.DLQ";
private ActiveMQDestination deadLetterQueue = new ActiveMQQueue(DEFAULT_DEAD_LETTER_QUEUE_NAME);
public ActiveMQDestination getDeadLetterQueueFor(ActiveMQDestination originalDestination) { public ActiveMQDestination getDeadLetterQueueFor(ActiveMQDestination originalDestination) {
return deadLetterQueue; return deadLetterQueue;