Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added example Java/Spring DSL (for CAMEL-3557)

...

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

Here is a simple example of creating a durable subscriber to a JMS topic

Using the Fluent Builders

Code Block
java
java

from("activemq:topic:foo?clientId=123&durableSubscriptionName=bar")
.to("mock:result");

Using the Spring XML Extensions

Code Block
xml
xml

<route>
    <from uri="activemq:topic:foo?clientId=123&durableSubscriptionName=bar"/>
    <to uri="mock:result"/>
</route>

See Also

...