[CONF] Apache Camel: Publish Subscribe Channel (page edited)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[CONF] Apache Camel: Publish Subscribe Channel (page edited)

Dhiraj Bokde (Confluence)

Publish Subscribe Channel has been edited by Jonathan Anstey (Jun 15, 2008).

(View changes)


Publish Subscribe Channel

Camel supports the Publish Subscribe Channel from the EIP patterns using the following components

  • JMS for working with JMS Topics for high performance, clustering and load balancing
  • XMPP when using rooms for group communication

Using Routing Logic

Another 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() {
        from("seda:a").to("seda:b", "seda:c", "seda:d");

Using the Spring XML Extensions

<camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
    <from uri="seda:a"/>
    <to uri="seda:b"/>
    <to uri="seda:c"/>
    <to uri="seda:d"/>

Using This Pattern

If 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.