private BrokerService createBroker() throws IOException, Exception {
BrokerService broker = new BrokerService();KahaDBStore kaha=new KahaDBStore();
File file =new File(path);
TransportConnector connector = new TransportConnector();
connector.setUri(new URI(DEFAULT_BROKER_URL));
kaha.setDirectory(file);
broker.addConnector(connector);
broker.setPersistenceAdapter(kaha);
}
This is configuration for my broker. Can somebody specify the configuration, how I can stop messages from going to DLQ after my re-delivery policy?
Note : I have already visited this, http://activemq.apache.org/message-redelivery-and-dlq-handling.html