Search code examples
javaapache-camel

What is the from uri= when you are defining the Camel route in xml?


I have several services that I would like to add Camel routes. The examples in xml I see are like so:

<route id="myId"
from uri="direct:inside"/>
to uri="mock:inside"/>
</route>

Where can I find the acceptable values for the string after "from uri="?

Also if I'm in ServiceA that seems like what I should put in the from uri. How do I do that?


Solution

  • All the Camel components have documentation which options they support. For example the direct component, has only 1 option listed https://camel.apache.org/components/4.8.x/direct-component.html

    You can see a list of all the components here: http://camel.apache.org/components