Durable Subscriber - 6.3

Talend ESB Mediation Developer Guide

EnrichVersion
6.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend ESB

Camel supports the Durable Subscriber from the EIP patterns using the Camel Component: JMS component which supports publish & subscribe using Topics with support for non-durable and durable subscribers.

Another alternative is to combine the Message Dispatcher or Content Based Router with Camel Component: File or Camel Component: JPA components for durable subscribers then Seda for non-durable.

Here are some examples of creating durable subscribers to a JMS topic. Using the Fluent Builders:

from("direct:start").to("activemq:topic:foo");
from("activemq:topic:foo?clientId=1&durableSubscriptionName=bar1").
   to("mock:result1");
from("activemq:topic:foo?clientId=2&durableSubscriptionName=bar2").
   to("mock:result2");

Using the Spring XML Extensions:

<route>
    <from uri="direct:start"/>
    <to uri="activemq:topic:foo"/>
</route>

<route>
    <from uri="activemq:topic:foo?clientId=1& ... 
       durableSubscriptionName=bar1"/>
    <to uri="mock:result1"/>
</route>

<route>
    <from uri="activemq:topic:foo?clientId=2& ...
       durableSubscriptionName=bar2"/>
    <to uri="mock:result2"/>
</route>