An open API service indexing awesome lists of open source software.

https://github.com/daggerok/java-mp-smallrye-kafka-example

Kafka messaging java example of SmallRye micro-profile and JBoss Weld CDI.using maven
https://github.com/daggerok/java-mp-smallrye-kafka-example

jakartaee javaee javaee8 kafka maven micro-profile microprofile microprofile-config microprofile-demo microprofile-example mp reactive-programming smallrye smallrye-reactive-streams

Last synced: 3 days ago
JSON representation

Kafka messaging java example of SmallRye micro-profile and JBoss Weld CDI.using maven

Awesome Lists containing this project

README

          

# Kafka Smallrye MicrpProfile
Kafka messaging java example of SmallRye micro-profile using maven

_this app requires kafka_

```bash
./run-local-kafka.sh
# or: ./run-kafka-in-docker.sh
```

_build and run fatJar_

```bash
mvn clean package
java -jar target/*-all.jar
```

_run using maven_

```bash
mvn clean compile exec:java -Dexec.mainClass=com.github.daggerok.App
# or
mvn clean compile exec:java -Dexec.mainClass=org.jboss.weld.environment.se.StartMain
```

_for debugging purpose run App main class right from IDE in debug mode_

* [SmallRye Reactive Messaging: Interacting with Apache Kafka](https://smallrye.io/smallrye-reactive-messaging/#_interacting_with_apache_kafka)
* [GitHub: useful kafka tests / configs](https://github.com/smallrye/smallrye-reactive-messaging/blob/master/smallrye-reactive-messaging-kafka/src/test/java/io/smallrye/reactive/messaging/kafka/KafkaTestBase.java)