EventBus ConsumeEvent starts consuming messages even before the engine is up #49481
Unanswered
vishnupriya19
asked this question in
Q&A
Replies: 1 comment
-
What engine do you have in mind? The
You can also inject the VirtualThread ExecutorService and use it in the manually registered consumers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have something like below.
@RunOnVirtualThread @ConsumeEvent(value = "xxx, codec = ServiceExceptionMessageCodec.class, local = false) public void consumeMessages(Message<JsonObject> msg) { logger.debug("request has come to eventbus", msg.address()); // processing logic }
In production environment, the event bus starts consuming messages even before my engine is up and ready and is throwing exceptions, can you help me in solving this?
If I manually register the consumers after the engine start, then we loose out on the VirtualThread Annotation.
Beta Was this translation helpful? Give feedback.
All reactions