-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reactive Messaging codestart (in java and kotlin) #20872
Comments
/cc @cescoffier, @evanchooly, @michalszynkiewicz, @ozangunalp, @phillip-kruger, @quarkusio/devtools |
@cescoffier suggested this: @ApplicationScoped
public class MyKafkaApplication {
@Channel("my-kafka-topic") Emitter<String> emitter;
/** Sends message to Kafka, can be used from a JAX-RS resource or any bean of your application **/
public void sendToKafka(String message) { emitter.send(message); }
/** Consume from Kafka topic **/
@Incoming("from-kafka") void consume(String message) {
Systme.out.println("Received: " + message);
}
} |
@loicmathieu suggested this: "I will also add a processor as it's very common and it will show the @Outgoing annotation." |
I'm taking care of it ;-) |
I am keeping @ozangunalp as reviewer/collaborator wdyt? |
ok sorry, I managed to add you both as assignee :) GH was acting weird.. |
* created `MyReactiveMessagingApplication` to demonstrates `@Emitter`, `@Incoming` and `@Outgoing` annotations.
* fix quarkusio#20872 * created `MyReactiveMessagingApplication` to demonstrates `@Emitter`, `@Incoming` and `@Outgoing` annotations.
* fix quarkusio#20872 * created `MyReactiveMessagingApplication` to demonstrates `@Emitter`, `@Incoming` and `@Outgoing` annotations.
* fix quarkusio#20872 * created `MyReactiveMessagingApplication` to demonstrates `@Emitter`, `@Incoming` and `@Outgoing` annotations. * created dynamic application.yml based on selected extension
* fix quarkusio#20872 * created `MyReactiveMessagingApplication` to demonstrates `@Emitter`, `@Incoming` and `@Outgoing` annotations. * created dynamic application.yml based on selected extension
* fix quarkusio#20872 * created `MyReactiveMessagingApplication` to demonstrates `@Emitter`, `@Incoming` and `@Outgoing` annotations. * created dynamic application.yml based on selected extension * added codestart integration test
* fix quarkusio#20872 * created `MyReactiveMessagingApplication` to demonstrates `@Emitter`, `@Incoming` and `@Outgoing` annotations. * created dynamic application.yml based on selected extension * added codestart integration test
* fix quarkusio#20872 * created `MyReactiveMessagingApplication` to demonstrates `@Emitter`, `@Incoming` and `@Outgoing` annotations. * created dynamic application.yml based on selected extension * added codestart integration test
* fix quarkusio#20872 * created `MyReactiveMessagingApplication` to demonstrates `@Emitter`, `@Incoming` and `@Outgoing` annotations. * created dynamic application.yml based on selected extension * added codestart integration test
* fix quarkusio#20872 * created `MyReactiveMessagingApplication` to demonstrates `@Emitter`, `@Incoming` and `@Outgoing` annotations. * created dynamic application.yml based on selected extension * added codestart integration test
* fix quarkusio#20872 * created `MyReactiveMessagingApplication` to demonstrates `@Emitter`, `@Incoming` and `@Outgoing` annotations. * created dynamic application.yml based on selected extension * added codestart integration test
Description
Create a codestart for Reactive Messaging in java and kotlin
Implementation ideas
It's better to first discuss the content of the codestart here.
The goal is to have code:
What is the piece of code that you nearly always start with when using the extension.. Make it compile, and it's the perfect codestart!
The guide to create an extension codestart quarkus.io/guides/extension-codestart
The text was updated successfully, but these errors were encountered: