-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Default MessageChannel bean for @ServiceActivator missing! #3111
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
Well, it even doesn't work without a
But that's indeed not the point. BTW, what doc do you claim in your topic, please? |
Well, I found the reason why we fail now: #2769 We defer endpoint creation (together with its implicit channel) to the phase when context is ready already. So, this a behavior change for your use-case to make working some other use-cases which results otherwise much worse than yours... I need to think more about this, but I'm afraid we would need to postpone the final decision to the next One of the idea is still parse messaging annotations for potential channel creation similar way we did before, but really defer an endpoint creation like it is right now. Any other thoughts? Thanks |
Or just remove the "implicit direct channel creation" feature and force the user to provide a directchannel directly as a bean? Because as of now, the feature is suggested here:
|
That's correct, but as you see that doc doesn't say that this channel is good for autowiring somewhere else. I don't think it is good to remove such a feature at all: it is there from day first. So, we should try to pursue its goal. |
see my comment in the related issue: #3130 (comment) May that
BTW, you don't need to inject a
|
Fixes spring-projects#3111 Fixes spring-projects#3130 * Fix some typos in docs * Ensure in tests that announced `@Lazy` works as expected
* GH-3111: Document @lazy for messaging annotations Fixes #3111 Fixes #3130 * Fix some typos in docs * Ensure in tests that announced `@Lazy` works as expected * Doc Polishing Co-authored-by: Gary Russell <[email protected]>
@artembilan thanks for your hints. Both using |
The following code use do work up to
spring-boot 2.1.10
. But since 2.2.x the following code does not find theMessageChannel
bean anymore:Error:
Of course this could be solved by simply adding a:
But as documented, I would consider this a bug.
The text was updated successfully, but these errors were encountered: