You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

FAQ on how do I configure endpoints?

There are a few different approaches to configuring components. You can explicitly configure a Component using Java code as shown in this example or you can configure them in your Spring XML - then register them with the CamelContext.

Another approach is to use the URI syntax. The URI syntax supports the query notation. So for example with the Mail component you can configure the password property via the URI

pop3://host:port?password=foo

Or you can explicitly get hold of an endpoint and configure it using Java code as shown in the Mock endpoint examples.

SomeEndpoint endpoint = (SomeEndpoint) camelContext.getEndpoint("someURI")l
endpoint.setSomething("aValue");
  • No labels