Questo contenuto non è disponibile nella lingua selezionata.

Chapter 26. Exchange Property


Overview

The exchange property language provides a convenient way of accessing exchange properties. When you supply a key that matches one of the exchange property names, the exchange property language returns the corresponding value.
The exchange property language is part of camel-core.

XML example

For example, to implement the recipient list pattern when the listOfEndpoints exchange property contains the recipient list, you could define a route as follows:
<camelContext>
  <route>
    <from uri="direct:a"/>
    <recipientList>
      <exchangeProperty>listOfEndpoints</exchangeProperty>
    </recipientList>
  </route>
</camelContext>
Copy to Clipboard Toggle word wrap

Java example

The same recipient list example can be implemented in Java as follows:
from("direct:a").recipientList(exchangeProperty("listOfEndpoints"));
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