Spring integration - multiple inbound adapters do not work

In my project, I use 9 (nine) int-ip: udp-inbound-channel-adapter and one jms: inbound-adapter-channel. JMS adapters receive messages from the server. Everything worked fine, but when I added another (10th) int-ip: udp-inbound-channel-adapter jms stopped receiving any messages. When I accidentally deleted one of the jms udp adapters, it came. I am using openMq. There are no errors or exceptions. What's wrong?

thanks

+4
source share
1 answer

By default, the taskScheduler bean has a pool of 10 threads. Each UDP adapter uses one of these streams to receive packets.

Just define an explicit scheduler with this name with a large pool size

<task:scheduler id="taskScheduler" pool-size="20"/> 
+3
source

All Articles