@@ -32,21 +32,21 @@ mvn clean package
3232
3333[source,shell]
3434----
35- java -jar target/single-step-batch-job-3.0 .0-SNAPSHOT.jar --spring.config.name=<property file containing batch, reader, and writer properties>
35+ java -jar target/single-step-batch-job-3.1 .0-SNAPSHOT.jar --spring.config.name=<property file containing batch, reader, and writer properties>
3636----
3737
3838== Examples
3939
4040=== FlatFileItemReader with a FlatFileItemWriter batch job
4141In this example the batch job will read from the test.txt file from the resources directory and write a `result.txt` file to the root directory of the project.
4242```
43- java -Dspring.profiles.active=ffreader,ffwriter -jar target/single-step-batch-job-2.3 .0-SNAPSHOT.jar
43+ java -Dspring.profiles.active=ffreader,ffwriter -jar target/single-step-batch-job-3.1 .0-SNAPSHOT.jar
4444```
4545
4646=== FlatFileItemReader with a JdbcItemWriter batch job
4747In this example the batch job will read from the test.txt file from the resources directory and write the result to the `item` table in your data store.
4848```
49- java -Dspring.profiles.active=ffreader,jdbcwriter -jar target/single-step-batch-job-2.3 .0-SNAPSHOT.jar
49+ java -Dspring.profiles.active=ffreader,jdbcwriter -jar target/single-step-batch-job-3.1 .0-SNAPSHOT.jar
5050```
5151
5252Before running create the following table:
@@ -60,7 +60,7 @@ CREATE TABLE IF NOT EXISTS item
6060=== JdbcCursorItemReader with a JdbcItemWriter batch job
6161In this example the batch job will read from the `item_sample` table in your data store (as specified in the default `DataSource` properties) and write the result to the `item` table in your data store (as specified in the default `DataSource` properties).
6262```
63- java -Dspring.profiles.active=jdbcreader,jdbcwriter -jar target/single-step-batch-job-2.3 .0-SNAPSHOT.jar
63+ java -Dspring.profiles.active=jdbcreader,jdbcwriter -jar target/single-step-batch-job-3.1 .0-SNAPSHOT.jar
6464```
6565
6666Before running create the following tables:
@@ -101,7 +101,7 @@ export spring_batch_job_jdbcbatchitemwriter_datasource_enable=true
101101=== JdbcCursorItemReader with FlatfileItemWriter batch job
102102In this example the batch job will read from the `item_sample` table in your data store and write the result to the `result.txt` file to the root directory of the project.
103103```
104- java -Dspring.profiles.active=jdbcreader,ffwriter -jar target/single-step-batch-job-2.3 .0-SNAPSHOT.jar
104+ java -Dspring.profiles.active=jdbcreader,ffwriter -jar target/single-step-batch-job-3.1 .0-SNAPSHOT.jar
105105```
106106
107107Before running create the following table:
@@ -122,23 +122,23 @@ INSERT INTO item_sample (item_name) VALUES ('Job');
122122=== FlatfileItemReader with AmqpItemWriter batch job
123123In this example the batch job will read from the `test.txt` file and write the result to the `sampleexchange` exchange.
124124```
125- java -Dspring.profiles.active=ffreader,amqpwriter -jar target/single-step-batch-job-2.3 .0-SNAPSHOT.jar
125+ java -Dspring.profiles.active=ffreader,amqpwriter -jar target/single-step-batch-job-3.1 .0-SNAPSHOT.jar
126126```
127127
128128NOTE: Before running create an exchange named `sampleexchange`.
129129
130130=== AmqpItemReader with FlatfileItemWriter batch job
131131In this example the batch job will read from the `samplequeue` queue and write the result to the `result.txt` in the current directory.
132132```
133- java -Dspring.profiles.active=amqpreader,ffwriter -jar target/single-step-batch-job-2.3 .0-SNAPSHOT.jar
133+ java -Dspring.profiles.active=amqpreader,ffwriter -jar target/single-step-batch-job-3.1 .0-SNAPSHOT.jar
134134```
135135
136136NOTE: Before running create and populate a queue named `samplequeue`.
137137
138138=== FlatfileItemReader with KafkaItemWriter batch job
139139In this example the batch job will read from the `test.txt` file and write the result to the `sampletopic` topic.
140140```
141- java -Dspring.profiles.active=ffreader,kafkawriter -jar target/single-step-batch-job-2.3 .0-SNAPSHOT.jar
141+ java -Dspring.profiles.active=ffreader,kafkawriter -jar target/single-step-batch-job-3.1 .0-SNAPSHOT.jar
142142```
143143
144144Before running create a topic named `sampletopic`. For example:
@@ -149,10 +149,10 @@ kafka-topics.sh --create --topic sampletopic --bootstrap-server localhost:9092
149149=== KafkaItemReader with FlatfileItemWriter batch job
150150In this example the batch job will read from the `sampletopic` topic and write the result to the `result.txt` in the current directory.
151151```
152- java -Dspring.profiles.active=kafkareader,ffwriter -jar target/single-step-batch-job-2.3 .0-SNAPSHOT.jar
152+ java -Dspring.profiles.active=kafkareader,ffwriter -jar target/single-step-batch-job-3.1 .0-SNAPSHOT.jar
153153```
154154
155155Before running populate the topic named `sampletopic`. For example populate it using the FlatfileItemReader and KafkaItemWriter from above:
156156```
157- java -Dspring.profiles.active=ffreader,kafkawriter -jar target/single-step-batch-job-2.3 .0-SNAPSHOT.jar
157+ java -Dspring.profiles.active=ffreader,kafkawriter -jar target/single-step-batch-job-3.1 .0-SNAPSHOT.jar
158158```
0 commit comments