Chapter 64. Ref
Route messages to an endpoint looked up dynamically by name in the Camel Registry.
64.1. What’s inside 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
-
Ref component, URI syntax:
ref:name
Please refer to the above link for usage and configuration details.
64.2. Maven coordinates 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Create a new project with this extension on code.quarkus.redhat.com
Or add the coordinates to your existing project:
<dependency> <groupId>org.apache.camel.quarkus</groupId> <artifactId>camel-quarkus-ref</artifactId> </dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-ref</artifactId>
</dependency>
64.3. Usage 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
CDI producer methods can be harnessed to bind endpoints to the Camel registry, so that they can be resolved using the ref
URI scheme in Camel routes.
For example, to produce endpoint beans:
Use ref:
to refer to the names of the CDI beans that were bound to the Camel registry: