Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Este contenido no está disponible en el idioma seleccionado.
Chapter 181. Vertx
Vertx Component Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
Available as of Camel 2.12
The vertx EventBus sends and receives JSON events.
Maven users will need to add the following dependency to their
pom.xml
for this component:
Note
From Camel 2.16 onwards, uses Vertx 3 which requires Java 8 at run time.
URI format Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
vertx:channelName[?options]
vertx:channelName[?options]
You can append query options to the URI in the following format,
?option=value&option=value&...
Options Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
Name
|
Default Value
|
Description
|
pubSub
|
false
|
Camel 2.12.3: Whether to use publish/subscribe instead of point to point when sending to a vertx endpoint.
|
Connecting to the existing Vert.x instance Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
If you would like to connect to the Vert.x instance already existing in your JVM, you can set the instance on the component level:
Vertx vertx = ...; VertxComponent vertxComponent = new VertxComponent(); vertxComponent.setVertx(vertx); camelContext.addComponent("vertx", vertxComponent);
Vertx vertx = ...;
VertxComponent vertxComponent = new VertxComponent();
vertxComponent.setVertx(vertx);
camelContext.addComponent("vertx", vertxComponent);