Re: On exception notify first error.

2015-05-26 Thread Cecilio Alvarez
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";

Re: On exception notify first error.

2015-05-21 Thread Andrew Block
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