My Spring Integration определяется в XML согласно ниже (обратите внимание, что я удалил открытия/закрытия символов, как XML не правильно отображать в моем вопросе):AMQP Pollable канал не распознается как Pollable потока
<int-amqp:channel id="actionInstructionTransformed" message-driven="false"/>
<int-xml:unmarshalling-transformer
input-channel="actionInstructionXmlValid" output-channel="actionInstructionTransformed"
unmarshaller="actionInstructionMarshaller" />
я получил Poller определенный с:
<int:poller id="customPoller" default="true" trigger="customPeriodicTrigger" task-executor="customTaskExecutor" max-messages-per-poll="${poller.maxMessagesPerPoll}" error-channel="drsGatewayPollerError" />
<int:transactional propagation="REQUIRED" read-only="true" transaction-manager="transactionManager" />
</int:poller>
В Java, я получил мой потребитель определился с:
@Transactional(propagation = Propagation.REQUIRED, readOnly = true, value = "transactionManager")
@ServiceActivator(inputChannel = "actionInstructionTransformed", poller = @Poller(value = "customPoller"),
adviceChain = "actionInstructionRetryAdvice")
public final void processInstruction(final ActionInstruction instruction)
Из документации (http://docs.spring.io/autorepo/docs/spring-integration/4.0.2.RELEASE/reference/html/amqp.html), я понимаю, что actionInstructionTransformed должно быть загрязняемым, поскольку я добавил message-driven = "false".
При запуске приложения Spring Boot я получаю исключение: вызвано: java.lang.IllegalStateException: для конечной точки, основанной на аннотации, не следует указывать «@Poller», так как «actionInstructionTransformed» - это SubscribableChannel (не Pollable).
Я использую Spring Boot 1.4.4.RELEASE.
Как я могу заставить actionInstructionTransformed распознаваться как загрязняющий?
Существует а 'code' возможности форматирования здесь в StackOverflow: http://stackoverflow.com/editing- Помогите. И только после этого мы вернемся к вам с помощью –