Reputation: 920
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?
Upvotes: 1
Views: 460
Reputation: 21005
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
Upvotes: 1