Questo contenuto non è disponibile nella lingua selezionata.

Chapter 146. 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
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
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat