Thanks for the help.
I came with the following solution:
public class ErrorHandlerNotifier implements Processor{
Logger logger = LoggerFactory.getLogger(ErrorHandlerNotifier.class);
private String destination;
private final String DEFAULT_DESTINATION = "activemq:MAILING";
Hi,
You can use a combination of the retryWhile property of onException to allow
for indefinite retrying. In addition, you can also use the onRedelivery
property to define a custom process to perform action prior to the redelivery
of a message. A ProducerTemplate can be used to send to a downst