|
|
Hi,
I want to achieve the following.
MessageSplitter -gt; DirectChannel -gt; JMSOutboundAdapter -gt; *Something here to be able to publish one message (in my case a response message) to another JMS Destination only when the previous batch has been successfully put onto the JMS Destination.*
The message splitter can return a list of individual messages (XML Strings in my case), I would then like this list (batch) to be published to an outbound JMS Destination and once complete I would like to be able to send a custom Response message (XML) to another JMS Destination to flag success.
Not sure exactly how I can achieve this or if this is supported, any help would be appreciated.
Cheers
.
Thanks for that,
I have another question, is it possible to specify an output channel for an OutboundChannelAdapter? Or to replicate that behaviour somehow?
input channel -gt; outboundChannelAdapter (publish to JMS) -gt; output channel
The Aggregator sounds good and so does Spring Batch (which I have used before). I will have a look into it.
Yes, you should have a look at the JMS quot;outbound-gatewayquot; rather than the outbound-channel-adapter. In Spring Integration, we use the terminology as such: channel-adapter = unidirectional (one-way); gateway = bidirectional (request/reply).
HTH,
Mark |
|