Closed marwanehcine closed 12 months ago
EventsConfiguration is an autoconfiguration, please rename as EventsAutoConfiguration for the sake of conventions. Also, it is imperative that it's conditional in some form, and not enabled by default, for backwards compatibility. The gateway shall keep being able to deploy without a rabbitmq at all. You can add for example
@Profile("rabbitmq")
, then the configuration class will only engage when the app is launched with the spring "rabbitmq" profile.
I made use of property "enableRabbitmqEvents" because I need to check it before calling rabbitMQSender in "OpenIdConnectUserMapper.java". I think this way we can activate to desactivate rabbitmq autoconfiguration. Thanks
Can someone merge this one if it's OK with you ? Thanks !
Can someone merge this one if it's OK with you ? Thanks !
Please wait I finish with port issues, Thanks
On this PR, we made use of spring rabbit events to send message from gateway to console in order to inform admin about new created OAuth2 account