If I configure wire-taps as follows, the channel marked "dossierInputChannel" does not receive any messages. However, changing the channel being used to wire-tap from a direct channel to a logging-channel-adapter channel makes it work. Can anybody see why?
To make it work, simply change line one to:
Why does this work?
<channel id="dossierInputChannelEventSource"/> <channel id="dossierInputChannel"> <queue/> <interceptors> <wire-tap channel="logHeaderChannel"/> <wire-tap channel="dossierInputChannelEventSource"/> </interceptors> </channel> <int-jdbc:outbound-channel-adapter data-source="dataSource" channel="dossierInputChannelEventSource" query= "INSERT INTO dossierInputChannelEventSource(id,irn,entrytime) VALUES (headers[id], :headers[irn], :headers[timestamp])"> </int-jdbc:outbound-channel-adapter>