Este contenido no está disponible en el idioma seleccionado.

Chapter 169. Stomp


Stomp Component

Available as of Camel 2.12
The stomp: component is used for communicating with Stomp compliant message brokers, like Apache ActiveMQ or ActiveMQ Apollo
Maven users will need to add the following dependency to their pom.xml for this component:
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-stomp</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>
Copy to Clipboard Toggle word wrap

URI format

stomp:queue:destination[?options]
Copy to Clipboard Toggle word wrap
Where destination is the name of the queue.

Options

Expand
Property Default Description
brokerURL tcp://localhost:61613 The URI of the Stomp broker to connect to
login The username
passcode The password
host Camel 2.15.3/2.16: The virtual host.
sslContextParameters null Camel 2.17: Reference to a org.apache.camel.util.jsse.SSLContextParameters in the Registry. The broker URL should use ssl as the protocol.
You can append query options to the URI in the following format, ?option=value&option=value&...

Samples

Sending messages:
from("direct:foo").to("stomp:queue:test");
Copy to Clipboard Toggle word wrap
Consuming messages:
from("stomp:queue:test").transform(body().convertToString()).to("mock:result")
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