Skip to content

Commit

Permalink
modify README of pubsub example
Browse files Browse the repository at this point in the history
Signed-off-by: MregXN <mregxn@gmail.com>
  • Loading branch information
MregXN committed Jun 5, 2023
1 parent 0202ab7 commit 6c70664
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions examples/src/main/java/io/dapr/examples/pubsub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -679,15 +679,15 @@ Messages will be subscribed by the gRPC Subscriber and will print the output as
If you run a bulk publisher using following command
<!-- STEP
name: Run Bulk Publisher
match_order: sequential
name: Run Publisher on bulk topic
expected_stdout_lines:
- '== APP == Published the set of messages in a single call to Dapr'
- '== APP == Published message: This is message #0'
- '== APP == Published message: This is message #1'
background: true
sleep: 20
-->
```bash
dapr run --components-path ./components/pubsub --app-id publisher -- java -jar target/dapr-java-sdk-examples-exec.jar io.dapr.examples.pubsub.Publisher testingtopicbulk
dapr run --components-path ./components/pubsub --app-id bulk-publisher -- java -jar target/dapr-java-sdk-examples-exec.jar io.dapr.examples.pubsub.BulkPublisher
```
<!-- END_STEP -->
Expand Down Expand Up @@ -824,11 +824,16 @@ For more details on Dapr Spring Boot integration, please refer to [Dapr Spring B
<!-- STEP
name: Cleanup
-->
Use the following command to stop your running http subscriber or gRPC subscriber.
```bash
dapr stop --app-id subscriber
```
<!-- END_STEP -->
After completing publish , the application will automatically exit. However, you can still use the following command to stop your running publisher.
```bash
dapr stop --app-id publisher
dapr stop --app-id bulk-publisher
dapr stop --app-id subscriber
```
<!-- END_STEP -->

0 comments on commit 6c70664

Please sign in to comment.