Bump Java client version to 5.21.0
This commit is contained in:
parent
c7dfe1d7e0
commit
34eed7bd72
@ -10,16 +10,16 @@ To successfully use the examples you will need a RabbitMQ node running locally.
|
||||
You'll need to download the following JAR files
|
||||
from Maven Central:
|
||||
|
||||
* [RabbitMQ Java Client](https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.16.0/amqp-client-5.16.0.jar)
|
||||
* [SLF4J API](https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar)
|
||||
* [SLF4J Simple](https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.7.36/slf4j-simple-1.7.36.jar)
|
||||
* [RabbitMQ Java Client](https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.21.0/amqp-client-5.21.0.jar)
|
||||
* [SLF4J API](https://repo1.maven.org/maven2/org/slf4j/slf4j-api/2.0.13/slf4j-api-2.0.13.jar)
|
||||
* [SLF4J Simple](https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/2.0.13/slf4j-simple-2.0.13.jar)
|
||||
|
||||
For example, with `wget`:
|
||||
|
||||
``` shell
|
||||
wget https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.16.0/amqp-client-5.16.0.jar
|
||||
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar
|
||||
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/1.7.36/slf4j-simple-1.7.36.jar
|
||||
wget https://repo1.maven.org/maven2/com/rabbitmq/amqp-client/5.21.0/amqp-client-5.21.0.jar
|
||||
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-api/2.0.13/slf4j-api-2.0.13.jar
|
||||
wget https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/2.0.13/slf4j-simple-2.0.13.jar
|
||||
```
|
||||
|
||||
Copy those files in your working directory, along the tutorials Java files.
|
||||
@ -30,14 +30,14 @@ To run them you'll need all the dependencies, see examples below.
|
||||
You can set an environment variable for the jar files on the classpath e.g.
|
||||
|
||||
```
|
||||
export CP=.:amqp-client-5.16.0.jar:slf4j-api-1.7.36.jar:slf4j-simple-1.7.36.jar
|
||||
export CP=.:amqp-client-5.21.0.jar:slf4j-api-2.0.13.jar:slf4j-simple-2.0.13.jar
|
||||
java -cp $CP Send
|
||||
```
|
||||
|
||||
On Windows, use a semicolon instead of a colon to separate items in the classpath:
|
||||
|
||||
```
|
||||
set CP=.;amqp-client-5.16.0.jar;slf4j-api-1.7.36.jar;slf4j-simple-1.7.36.jar
|
||||
set CP=.;amqp-client-5.21.0.jar;slf4j-api-2.0.13.jar;slf4j-simple-2.0.13.jar
|
||||
java -cp %CP% Send
|
||||
```
|
||||
|
||||
@ -46,19 +46,19 @@ java -cp %CP% Send
|
||||
#### [Tutorial one: "Hello World!"](https://www.rabbitmq.com/tutorials/tutorial-one-java.html):
|
||||
|
||||
```
|
||||
javac -cp amqp-client-5.16.0.jar Send.java Recv.java
|
||||
javac -cp amqp-client-5.21.0.jar Send.java Recv.java
|
||||
|
||||
# terminal tab 1
|
||||
java -cp .:amqp-client-5.16.0.jar:slf4j-api-1.7.36.jar:slf4j-simple-1.7.36.jar Recv
|
||||
java -cp .:amqp-client-5.21.0.jar:slf4j-api-2.0.13.jar:slf4j-simple-2.0.13.jar Recv
|
||||
|
||||
# terminal tab 2
|
||||
java -cp .:amqp-client-5.16.0.jar:slf4j-api-1.7.36.jar:slf4j-simple-1.7.36.jar Send
|
||||
java -cp .:amqp-client-5.21.0.jar:slf4j-api-2.0.13.jar:slf4j-simple-2.0.13.jar Send
|
||||
```
|
||||
|
||||
#### [Tutorial two: Work Queues](https://www.rabbitmq.com/tutorials/tutorial-two-java.html):
|
||||
|
||||
```
|
||||
javac -cp amqp-client-5.16.0.jar NewTask.java Worker.java
|
||||
javac -cp $CP NewTask.java Worker.java
|
||||
|
||||
# terminal tab 1
|
||||
java -cp $CP NewTask
|
||||
@ -70,7 +70,7 @@ java -cp $CP Worker
|
||||
#### [Tutorial three: Publish/Subscribe](https://www.rabbitmq.com/tutorials/tutorial-three-java.html)
|
||||
|
||||
``` shell
|
||||
javac -cp amqp-client-5.16.0.jar EmitLog.java ReceiveLogs.java
|
||||
javac -cp $CP EmitLog.java ReceiveLogs.java
|
||||
|
||||
# terminal tab 1
|
||||
java -cp $CP ReceiveLogs
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
javac -cp .:amqp-client-5.7.1.jar:slf4j-api-1.7.26.jar:slf4j-simple-1.7.26.jar *.java
|
||||
javac -cp .:amqp-client-5.21.0.jar:slf4j-api-2.0.13.jar:slf4j-simple-2.0.13.jar *.java
|
||||
|
Loading…
Reference in New Issue
Block a user