blob: 5234588a634cc8f094dd8ee45807e4c305621967 [file] [log] [blame]
[[topic-eip]]
= Topic EIP
:page-source: core/camel-core-engine/src/main/docs/eips/topic-eip.adoc
Topic Load Balancer, with this policy you'll get a Topic behavior by sending to all destinations.
== Options
// eip options: START
The Topic EIP has no options.
// eip options: END
== Examples
In this case we are using the header test as correlation expression:
[source,java]
----
from("direct:start")
.loadBalance()
.topic()
.to("seda:x", "seda:y", "seda:z");
----
In XML you'll have a route like this
[source,xml]
----
<from uri="direct:start"/>
<loadBalance>
<topic/>
<to uri="seda:x"/>
<to uri="seda:y"/>
<to uri="seda:z"/>
</loadBalance>
----