Este contenido no está disponible en el idioma seleccionado.

Chapter 181. Vertx


Vertx Component

Available as of Camel 2.12
The vertx component is for working with the Vertx EventBus.
The vertx EventBus sends and receives JSON events.
Maven users will need to add the following dependency to their pom.xml for this component:
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-vertx</artifactId>
    <version>2.17.0.redhat-630xxx</version>
    <!-- use the same version as your Camel core version -->
</dependency>
Copy to Clipboard Toggle word wrap
Note
From Camel 2.16 onwards, uses Vertx 3 which requires Java 8 at run time.

URI format

vertx:channelName[?options]
Copy to Clipboard Toggle word wrap
You can append query options to the URI in the following format, ?option=value&amp;option=value&amp;...

Options

Expand
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

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);
Copy to Clipboard Toggle word wrap
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat