I use java implementation for Camel. Should I use different class for each route I configure or use one common class to configure them all?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
generally, I use a RouteBuilder class to configure functionally related routes, but the granularity is entirely up to you.
One other thing to consider is that the exception handling is specific to each RouteBuilder…
see this question for more details on this: Camel Exception handling doesnt work if exception clause is defined in a separate class