package asmilk.ascloud.config;

import org.springframework.amqp.core.AmqpAdmin;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.amqp.rabbit.core.RabbitAdmin;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;

@Profile("cloud")
public class RabbitConfig {

	@Bean
	public RabbitTemplate rabbitTemplate(ConnectionFactory connectionFactory) {
		return new RabbitTemplate(connectionFactory);
	}

	@Bean
	public AmqpAdmin amqpAdmin(ConnectionFactory connectionFactory) {
		return new RabbitAdmin(connectionFactory);
	}

	@Bean
	public Queue myQueue() {
		return new Queue("myqueue");
	}

}

@@ -418,16 +418,141 @@
 rofile;%0D
+%0Aimport org.springframework.retry.backoff.ExponentialBackOffPolicy;%0D%0Aimport org.springframework.retry.support.RetryTemplate;%0D
 %0A%0D%0A@Prof
@@ -676,38 +676,63 @@
 onFactory) %7B%0D%0A%09%09
-return
+RabbitTemplate rabbitTemplate =
  new RabbitTempl
@@ -748,32 +748,409 @@
 ctionFactory);%0D%0A
+%09%09RetryTemplate retryTemplate = new RetryTemplate();%0D%0A%09%09ExponentialBackOffPolicy backOffPolicy = new ExponentialBackOffPolicy();%0D%0A%09%09backOffPolicy.setInitialInterval(500);%0D%0A%09%09backOffPolicy.setMultiplier(10.0);%0D%0A%09%09backOffPolicy.setMaxInterval(10000);%0D%0A%09%09retryTemplate.setBackOffPolicy(backOffPolicy);%0D%0A%09%09rabbitTemplate.setRetryTemplate(retryTemplate);%0D%0A%09%09return rabbitTemplate;%0D%0A
 %09%7D%0D%0A%0D%0A%09@Bean%0D%0A%09p

test my issue