BATCH-1939: Minor cleanups to AMQP sample

This commit is contained in:
Chris Schaefer
2012-12-21 18:53:20 -05:00
parent b6cbcd4b52
commit dfe13ed07d
3 changed files with 6 additions and 41 deletions

View File

@@ -11,9 +11,12 @@ import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
* Run the job to read from the "test.inbound" queue, process the messages and write them to the "test.outbound" queue:
* mvn -q exec:java -Dexec.mainClass="org.springframework.batch.core.launch.support.CommandLineJobRunner" \
* -Dexec.arguments="classpath*:/META-INF/spring/jobs/amqp/amqp-example-job.xml,amqp-example-job"
* <p>Ensure a RabbitMQ instance is running, modifying default.amqp.properties if needed. Execute the
* {@link org.springframework.batch.sample.rabbitmq.amqp.AmqpMessageProducer#main(String[])} method
* in order for messages will be written to the "test.inbound" queue.</p>
*
* <p>Run this test and the job will read those messages, process them and write them to the "test.outbound"
* queue for inspection.</p>
*/
@RunWith(SpringJUnit4ClassRunner.class)