Created
July 18, 2025 14:11
-
-
Save guildenstern70/88435a4ddc4efa37de1156be8a1b0e9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ApplicationScoped | |
| @Slf4j | |
| public class EmitterService | |
| { | |
| @Inject | |
| @Channel("out-topic") | |
| Emitter<String> sender; | |
| // Create an event and put it on a queue | |
| public void createEvent(String message) | |
| { | |
| log.info("Sending event: {}", message); | |
| this.sender.send(message); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment