Skip to content

Commit ee29bd4

Browse files
committed
Update README.md
1 parent 54b902f commit ee29bd4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

spring-amqp/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,32 @@ java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=work-queues,sen
5151

5252
For tutorial 6, run the server followed by the client.
5353

54+
You can find more usage instructions by running the following command:
55+
56+
```
57+
java -jar target/rabbitmq-tutorials.jar
58+
```
59+
60+
This will display the following message:
61+
62+
```
63+
This app uses Spring Profiles to control its behavior.
64+
65+
Options are:
66+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=hello-world,receiver
67+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=hello-world,sender
68+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=work-queues,receiver
69+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=work-queues,sender
70+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=pub-sub,receiver
71+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=pub-sub,sender
72+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=routing,receiver
73+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=routing,sender
74+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=topics,receiver
75+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=topics,sender
76+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=rpc,client
77+
java -jar target/rabbitmq-tutorials.jar --spring.profiles.active=rpc,server
78+
```
79+
5480
## Configuration
5581

5682
When running receivers/servers it's useful to set the duration the app runs to a longer time. Do this by setting

0 commit comments

Comments
 (0)