Vaadin doesn't recognize MessageChannel in Spring Boot 2
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 186
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
Hello, after upgrading to Spring Boot 2, channel is not registered in class with Vaadin's annotations. When I switch these annotations to @Component then it works but I need this method in Vaadin class. Is there any work around?
@SpringComponent
@UIScope
public class AdFetcher extends Grid<Ad>
{
@StreamListener
public void fetchAdsFrom(@Input(OffersChannel.OFFERS_OBTAIN) Flux<Ad> fluxAd)
{
fluxAd.subscribe(super::setItems);
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the AdFetcher example and investigate how @SpringComponent and @UIScope classes are registered after upgrading to Spring Boot 2, comparing that path with @Component. No repository file or test is named; done means a Vaadin-annotated class can receive the @StreamListener MessageChannel without switching to @Component.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100