fb.setRetryOperations(retryTemplate);
// give him a reference to the retry cache so he can clean it up
MissingMessageIdAdvice missingIdAdvice = new MissingMessageIdAdvice(cache);
Advice retryInterceptor = fb.getObject();
// add both advices
container.setAdviceChain(new Advice[] {missingIdAdvice, retryInterceptor});
container.start();
template.convertAndSend("retry.test.exchange", "retry.test.binding", "Hello, world!");