class AmqpMessageProducer {

	private AmqpMessageProducer() {
	}

	private static final int SEND_MESSAGE_COUNT = 10;

	private static final String[] BEAN_CONFIG = {
			"classpath:org/springframework/batch/samples/amqp/job/rabbitmq-beans.xml" };

	public static void main(String[] args) {<FILL_FUNCTION_BODY>}

}

		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(BEAN_CONFIG);
		AmqpTemplate amqpTemplate = applicationContext.getBean("inboundAmqpTemplate", RabbitTemplate.class);

		for (int i = 0; i < SEND_MESSAGE_COUNT; i++) {
			amqpTemplate.convertAndSend("foo message: " + i);
		}

		((ConfigurableApplicationContext) applicationContext).close();
	
<no_super_class>