public static void main(String[] args) {
		AbstractApplicationContext ctx = new ClassPathXmlApplicationContext("/spring/amqp-gateway-context.xml");
		MessageChannel toRabbit = ctx.getBean("toRabbit",MessageChannel.class);
		PollableChannel outRe = ctx.getBean("outboundReply",PollableChannel.class);
		for(int i=0;i<10;i++){
			toRabbit.send(MessageBuilder.withPayload(new Book("Two cities"+i,"Xiao Yi")).build());
			Message<?> outReMessage = outRe.receive();
			if(outReMessage!=null)
				System.out.println("outBound:"+outReMessage.getPayload());
		}
	}