Ensuring Proper Initialization Order for Beans in Micronaut #11282
Unanswered
rsalbergaria
asked this question in
Q&A
Replies: 3 comments 1 reply
-
Can you help me? @dstepanov |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can this issue help me? #11044 |
Beta Was this translation helpful? Give feedback.
0 replies
-
What executions are not passed through BeanCreatedEventListener? Can you create a simple project? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Micronaut Team,
I am currently working on a project where I need to provide KafkaPublisher beans programmatically. The goal is to ensure that these beans are initialized correctly and in the right order, especially when developers use named instances.
Here is a brief overview of my setup:
I also have a BeanCreatedEventListener to capture the creation of KafkaPublisher beans:
}`
The issue I am facing is that not all executions are passing through the BeanCreatedEventListener. I need to ensure that my factory instances are initialized first and that the correct KafkaPublisher instance is returned based on the @nAmed annotation.
Could you please provide guidance on how to ensure the proper initialization order and correct instance creation in Micronaut? Any help or suggestions would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions