How to keep messages in channel with no subscriber in Spring Integration? -


i have following set-up in spring integration 4.1 project:

  • a chain subscribed publish-subscriber channel.
  • a service bus starts/stops chain.

what happens when stop chain, messages dissapear topic , them remain there until chain activated again (much jms queue). how achieve behaviour?

i have tried approach error "back channel" stating not have subscribers process message:

enter image description here

1 - publish-subscriber channel

2 - chain being stopped/started

3 - control bus gateway

4 - have added bridge , regular channel act queue

this error solution:

caused by: org.springframework.integration.messagedispatchingexception: dispatcher has no subscribers @ org.springframework.integration.dispatcher.unicastingdispatcher.dodispatch(unicastingdispatcher.java:107) @ org.springframework.integration.dispatcher.unicastingdispatcher.dispatch(unicastingdispatcher.java:97) @ org.springframework.integration.channel.abstractsubscribablechannel.dosend(abstractsubscribablechannel.java:77) ... 30 more 

so, question is: how should configure channels messages remain there until subscriber added again? possible?

correct; make channel queuechannel (add <queue/> child element) , add poller chain.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -