0

I want to read from 4 database tables using JDBC Inbound Adapters with polling. Each JDBC Inbound Adapter serves as the starting point of one of my 4 integration flows. Each flow is independent of the others.

My question is: Is it possible to have multiple integration flows, each with its own JDBC Inbound Channel Adapter, in Spring Integration?

Dr Mido
2,9856 gold badges41 silver badges89 bronze badges
asked Jun 1, 2025 at 18:14

1 Answer 1

0

Yes. You can do that. Spring projects are designed for enterprise in mind. Therefore you indeed can have multi-thread solution.

Not clear why have you raised the question before trying that yourself.

Either way, keep in mind that Spring Boot auto-configure a TaskScheduler with one thread in its pool by default: https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html#page-title. So, you may think about increasing that pool size. All the polling channel adapters rely on that TaskScheduler for their polling tasks: https://docs.spring.io/spring-integration/reference/channel-adapter.html#channel-adapter-namespace-inbound

answered Jun 2, 2025 at 13:45
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you for your answer. Yes, I have tried it — it works. But later I started wondering if it’s considered best practice for handling multiple JDBC inbound adapters in Spring Integration. I should have rephrased the question. Increasing the pool size is new to me, so thanks for the helpful tips!

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.