1 18 package org.apache.activemq.broker.region.policy; 19 20 import org.apache.activemq.command.ActiveMQDestination; 21 import org.apache.activemq.command.ActiveMQQueue; 22 23 32 public class SharedDeadLetterStrategy implements DeadLetterStrategy { 33 34 private ActiveMQDestination deadLetterQueue = new ActiveMQQueue("ActiveMQ.DLQ"); 35 36 public ActiveMQDestination getDeadLetterQueueFor(ActiveMQDestination originalDestination) { 37 return deadLetterQueue; 38 } 39 40 public ActiveMQDestination getDeadLetterQueue() { 41 return deadLetterQueue; 42 } 43 44 public void setDeadLetterQueue(ActiveMQDestination deadLetterQueue) { 45 this.deadLetterQueue = deadLetterQueue; 46 } 47 48 } 49 | Popular Tags |