We have spring integration application which polls db records from oracle table. Same thread put those records in rabbitmq queue. We have created our own ThreadPoolTaskExecu