Luca Burgazzoli created CAMEL-14089:
---------------------------------------

             Summary: Improve routes discovering
                 Key: CAMEL-14089
                 URL: https://issues.apache.org/jira/browse/CAMEL-14089
             Project: Camel
          Issue Type: Improvement
          Components: camel-main
            Reporter: Luca Burgazzoli
             Fix For: 3.x


Camel main has two main options to auto-discover routes:

- by scanning the class path
- by scanning the registry

So it is possible that if a user adda a route to the registry programmatically, 
then the route is present twice and potentially leading to errors because it is 
also discovered from the classpath.

There are some workaround for that, like:

- configure routes inclusion/exclusion patterns
- disable auto discovery

But it would be nice if we can give to the use more control about the 
discovering process like to explicit mark routes from discovering with a 
dedicated annotation or reusing an existing one like @BindToRegistry.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to