user1171632
user1171632

Reputation: 920

Camel's routes configuration in java - use one common class?

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

Answers (1)

Ben ODay
Ben ODay

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

Related Questions