spring integration - Intermittent BridgeHandler & PublishSubscribeChannel call when gateways' reply channel is pub/sub -
i'm seeing weird behaviour when sending data through channels. i'm using si gateway when sending message processed. gateway setup below
<integration:gateway id="rptpubgateway" default-request-channel="rptpubinchannel" default-reply-channel="rptoutputavailablechannel" default-reply-timeout="60000" service-interface="xxxx.rptpubgateway" />
the reply channel being set publish/subscribe channel
<integration:publish-subscribe-channel id="rptoutputavailablechannel" />
the last service processes message being declared below
<integration:service-activator input-channel="rptoutputavailablechannel" ref="requestmessagehandler" method="rptisdone" output-channel="nullchannel"/>
now, issue have while code works fine of time, fails sometimes. when works fine last component processing message publishsubschannel
publishsubscribechannel - presend on channel 'rptoutputavailablechannel'
but when fails last component becomes bridgerhandler
bridgehandler@e851a798' sending reply message:
i should mention there no exceptions being thrown while processing message. (after failure can resend same message , work ok)
i'm not sure how bridgerhandler gets created. know bridge gets created pub/subs channels why don't see in log when works fine ?
i'd appreciate help
when "fails" mean?
what other consumers on rptoutputavailablechannel
?
the bridgehandler
see internal bridge message's replychannel
header, reply must go. when explicitly sending rptoutputavailablechannel
, bridge handler always invoked reply message's temporary reply channel.
Comments
Post a Comment