After tooling around with the XML and the annotation implementation for ServiceActivator, it seems like I have to use both in order to get a response sent to a replyQueue presumably because of the integrated poller. Is that the correct behavior or am I missing something in the annotation?
I was hoping I could just get away with using the annotation something like:
@ServiceActivator(inputChannel="fileRequests", outputChannel="replyChannel")
Instead I have to do this and have it defined in the XML as well in order for the message to be sent to the replyChannel.
Thoughts?Code:<integration:service-activator input-channel="fileRequests" ref="receiver" output-channel="replyChannel"> <integration:poller> <integration:interval-trigger interval="10" time-unit="SECONDS" /> </integration:poller> </integration:service-activator> <bean id="receiver" class="com.loutilities.jobs.FileDocumentService" />
Thanks,
Lou


Reply With Quote