Identity microservice posting to an eventbus

I am using this class in my Identity microservice wich adds the TestUsers to the identity database however i need to post a message to my eventbus for each user added so that my other microservices are notified and also add the user to their databases but i always get the error that my eventbus is null
No description
3 Replies
Mayor McCheese
Mayor McCheese14mo ago
Event bus is always null in your code, you're not ever describing it in dependency injection. Unless it's offscreen
samuel wouters
samuel woutersOP14mo ago
what do u mean? i am doingf the injection like this
No description
Mayor McCheese
Mayor McCheese14mo ago
That's not in your screenshot or I'm missing it somehow.

Did you find this page helpful?