-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Documentation inaccuracy for Redis Pub/Sub section #2524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So in that regard, our documentation is accurate. If you want to spin up beans on your own without using the Spring bean container, then you need to take care of all lifecycle callbacks ( |
Hi @mp911de Thank you for the quick response.
so this code just doesn't work because afterPropertiesSet is not invoked. I had to deep dive into source code to understand why. So I suggest to change this piece of code and add invocation of afterPropertiesSet(). |
Apologies, I mixed up |
Hi
Here's the code from the reference documentation to attach custom message handler:
However it would fail with the error message:
The issue that this code doesn't invoke afterPropertiesSet as clearly mentioned in JavaDocs of MessageListenerAdapter:
Make sure to call {@link #afterPropertiesSet()} after setting all the parameters on the adapter.
The text was updated successfully, but these errors were encountered: