Questo contenuto non è disponibile nella lingua selezionata.

7.2. Event Message


Event Message

Camel supports the Event Message from the Introducing Enterprise Integration Patterns by supporting the Exchange Pattern on a Message which can be set to InOnly to indicate a oneway event message. Camel Components then implement this pattern using the underlying transport or protocols.
The default behaviour of many Components is InOnly such as for JMS, File or SEDA

Explicitly specifying InOnly

If you are using a component which defaults to InOut you can override the Message Exchange Pattern for an endpoint using the pattern property.
foo:bar?exchangePattern=InOnly
Copy to Clipboard Toggle word wrap
From 2.0 onwards on Camel you can specify the Message Exchange Pattern using the dsl.
Using the Fluent Builders
from("mq:someQueue").
  inOnly().
  bean(Foo.class);
Copy to Clipboard Toggle word wrap
or you can invoke an endpoint with an explicit pattern
from("mq:someQueue").
  inOnly("mq:anotherQueue");
Copy to Clipboard Toggle word wrap
<route>
    <from uri="mq:someQueue"/>
    <inOnly uri="bean:foo"/>
</route>
Copy to Clipboard Toggle word wrap
<route>
    <from uri="mq:someQueue"/>
    <inOnly uri="mq:anotherQueue"/>
</route>
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