I\'m using Spring Cloud Stream with Spring Boot. My application is very simple:
ExampleService.class:
@EnableBinding(Processor1.class)
@Service
publi
What leads you to believe that @SendTo
on its own is supported? @SendTo
is a secondary annotation used by many projects, not just Spring Cloud Stream; as far as I know, there is nothing that will look for it on its own.
Try Spring Integration's @Publisher
annotation instead (with @EnablePublisher
).
EDIT
To force proxying with CGLIB instead of a JDK proxy, you can do this...
@Bean
public static BeanFactoryPostProcessor bfpp() {
return bf -> {
bf.getBean(IntegrationContextUtils.PUBLISHER_ANNOTATION_POSTPROCESSOR_NAME,
PublisherAnnotationBeanPostProcessor.class).setProxyTargetClass(true);
};
}