Skip to content

Commit c3170b0

Browse files
authored
tutorial java stream client (#384)
* Hello world with Java Stream Client with Maven
1 parent 4cb1a81 commit c3170b0

File tree

11 files changed

+782
-0
lines changed

11 files changed

+782
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ updates:
88
interval: "daily"
99
open-pull-requests-limit: 20
1010
target-branch: "main"
11+
- package-ecosystem: "maven"
12+
directory: "/java-stream-mvn"
13+
schedule:
14+
interval: "daily"
15+
open-pull-requests-limit: 20
16+
target-branch: "main"
1117
- package-ecosystem: "maven"
1218
directory: "/spring-amqp"
1319
schedule:

java-stream-mvn/.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
target/
2+
rmq-conf/
3+
4+
!.mvn/wrapper/maven-wrapper.jar
5+
!**/src/main/**/target/
6+
!**/src/test/**/target/
7+
8+
### IntelliJ IDEA ###
9+
.idea/modules.xml
10+
.idea/jarRepositories.xml
11+
.idea/compiler.xml
12+
.idea/libraries/
13+
*.iws
14+
*.iml
15+
*.ipr
16+
17+
### Eclipse ###
18+
.apt_generated
19+
.classpath
20+
.factorypath
21+
.project
22+
.settings
23+
.springBeans
24+
.sts4-cache
25+
26+
### NetBeans ###
27+
/nbproject/private/
28+
/nbbuild/
29+
/dist/
30+
/nbdist/
31+
/.nb-gradle/
32+
build/
33+
!**/src/main/**/build/
34+
!**/src/test/**/build/
35+
36+
### VS Code ###
37+
.vscode/
38+
39+
### Mac OS ###
40+
.DS_Store
61.1 KB
Binary file not shown.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

java-stream-mvn/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Java code for RabbitMQ tutorials
2+
3+
Here you can find Java code examples from [RabbitMQ tutorials](https://www.rabbitmq.com/getstarted.html).
4+
5+
## Requirements
6+
7+
These examples use the [`rabbitmq-stream-java-client`](https://github.com/rabbitmq/rabbitmq-stream-java-client) client library.
8+
This example uses Maven to manage dependencies.
9+
10+
## Code
11+
12+
Code examples are executed via the Maven wrapper `./mvnw`.
13+
Remove the `-q` flag to get more information in case an example does not behave as expected.
14+
15+
[Tutorial one: "Hello World!"](https://www.rabbitmq.com/tutorials/tutorial-one-java-stream.html):
16+
17+
```
18+
./mvnw -q compile exec:java -Dexec.mainClass="Send"
19+
./mvnw -q compile exec:java -Dexec.mainClass="Receive"
20+
```
21+
22+
To learn more, see [`rabbitmq/rabbitmq-stream-java-client`](https://github.com/rabbitmq/rabbitmq-stream-java-client).

0 commit comments

Comments
 (0)