Well, either I need more coffee or I described my problem too vaguely
Here is my config
Code:
<int:service-activator input-channel="documentUrlsProcessorChannel"
output-channel="mediaRetrievalRequestChannel"
ref="documentUrlsProcessor">
<int:poller task-executor="documentUrlsProcessorTaskExecutor"
fixed-rate="200" max-messages-per-poll="50"/>
</int:service-activator>
What I would like is that documentUrlsProcessor returns a list of MediaRetrievalRequest and then SI would send one message per item in the list in the "mediaRetrievalRequestChannel" (the output channel).
I tried this but it didn't worked
Code:
@ServiceActivator
@Transactional
@Splitter
public List<MediaRetrievalRequest> handle(Document doc) {
...
}
I tried to use the splitter with xml but I can't see any sample that does what I want. The café sample takes the content of an input channel and dispatch it to an output channel. That's not what I am doing. What I want is to split the response of my message handler. Do I have to create a channel in between to achieve this?