Hi - I have a use case where I want to put a message on to an output queue then update a record in the database to record the fact that the message has been sent. I'm using a <jms:outbound-channel-adapter> for putting the message on to the queue, but then I want to route the message on to another channel after that (synchronously). Then I would use a service-activator on that channel to do the 'post-send' database update. As far as I can see, however, an outbound-channel-adapter must be the terminal node in the pipeline -- I don't see any way to specify an output channel following the outbound adapter.
I have tried setting the input-channel of my service-activator to be the same as the channel defined for the channel adapter (see below), but that results in messages arbitrarily being routed to either the adapter or the service-activator, rather than one followed by the other.
Please advise...Code:<service-activator input-channel="publicationOutputChannel" ref="publicationLogUpdater" method="updatePublicationLog" output-channel="nullChannel" auto-startup="true"/> <jms:outbound-channel-adapter id="jmsOut" jms-template="jmsOutTemplate" channel="publicationOutputChannel"/>
Thanks
-Matt


Reply With Quote
