Publish Subscribe ChannelPage edited by Claus IbsenChanges (3)
Full ContentPublish Subscribe ChannelCamel supports the Publish Subscribe Channel from the EIP patterns using for example the following components:
Using Routing LogicAnother option is to explicitly list the publish-subscribe relationship in your routing logic; this keeps the producer and consumer decoupled but lets you control the fine grained routing configuration using the DSL or Xml Configuration. Using the Fluent Builders RouteBuilder builder = new RouteBuilder() { public void configure() { errorHandler(deadLetterChannel("mock:error")); from("seda:a") .multicast().to("seda:b", "seda:c", "seda:d"); } }; Using the Spring XML Extensions <camelContext errorHandlerRef="errorHandler" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="seda:a"/> <multicast> <to uri="seda:b"/> <to uri="seda:c"/> <to uri="seda:d"/> </multicast> </route> </camelContext> Using This PatternIf you would like to use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out.
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|