rabbitmq-tutorials/java-stream-mvn
dependabot[bot] 936ade16aa
chore(deps): bump com.rabbitmq:stream-client in /java-stream-mvn
Bumps [com.rabbitmq:stream-client](https://github.com/rabbitmq/rabbitmq-stream-java-client) from 0.24.0 to 1.0.0.
- [Release notes](https://github.com/rabbitmq/rabbitmq-stream-java-client/releases)
- [Commits](https://github.com/rabbitmq/rabbitmq-stream-java-client/compare/v0.24.0...v1.0.0)

---
updated-dependencies:
- dependency-name: com.rabbitmq:stream-client
  dependency-version: 1.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-16 17:49:35 +00:00
..
.mvn/wrapper Start stream tutorial 2 for Java 2024-06-20 12:56:39 -07:00
src/main Change variable name for consistency 2024-07-10 17:04:53 +02:00
.gitignore tutorial java stream client (#384) 2024-05-09 07:25:59 +02:00
mvnw tutorial java stream client (#384) 2024-05-09 07:25:59 +02:00
mvnw.cmd tutorial java stream client (#384) 2024-05-09 07:25:59 +02:00
pom.xml chore(deps): bump com.rabbitmq:stream-client in /java-stream-mvn 2025-04-16 17:49:35 +00:00
README.md Adjust mvnw quoting so that it will work on bash as well as PowerShell 2024-06-11 11:23:55 -07:00
start-broker.sh tutorial java stream client (#384) 2024-05-09 07:25:59 +02:00

Java code for RabbitMQ tutorials

Here you can find Java code examples from RabbitMQ tutorials.

To successfully use the examples you will need a running RabbitMQ server with the stream plugin enabled.

See First Application With RabbitMQ Streams, Stream plugin documentation and how to preconfigure plugins.

Requirements

These examples use the rabbitmq-stream-java-client client library. This example uses Maven to manage dependencies.

Code

Code examples are executed via the Maven wrapper ./mvnw. Remove the -q flag to get more information in case an example does not behave as expected.

Tutorial one: "Hello World!":

./mvnw -q compile exec:java '-Dexec.mainClass=Send'
./mvnw -q compile exec:java '-Dexec.mainClass=Receive'

To learn more, see rabbitmq/rabbitmq-stream-java-client.