-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move AMQP sample to rabbitmq package
Issue #3663
- Loading branch information
1 parent
e693879
commit 1eab6f6
Showing
4 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...batch-samples/src/main/java/org/springframework/batch/sample/rabbitmq/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# AMQP sample Job | ||
|
||
## About | ||
|
||
This sample shows the use of Spring Batch to write to an `AmqpItemWriter`. | ||
The `AmqpItemReader` and Writer were contributed by Chris Schaefer. | ||
It is modeled after the `JmsItemReader` / Writer implementations, which | ||
are popular models for remote chunking. It leverages the `AmqpTemplate`. | ||
|
||
## Run the sample | ||
|
||
This example requires the env to have a copy of rabbitmq installed | ||
and running. The standard dashboard can be used to see the traffic | ||
from the `MessageProducer` to the `AmqpItemWriter`. Make sure you | ||
launch the `MessageProducer` before launching the test. | ||
|
||
You can run the sample from the command line as following: | ||
|
||
``` | ||
cd spring-batch-samples | ||
# Launch the test using the XML configuration | ||
../mvnw -Dtest=AMQPJobFunctionalTests#testLaunchJobWithXmlConfig test | ||
# Launch the test using the Java configuration | ||
../mvnw -Dtest=AMQPJobFunctionalTests#testLaunchJobWithJavaConfig test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters