Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can specify all of the various configuration options of the JMS component after the destination name.

Usage

As AMQP component is inherited from JMS component, the usage of the former is almost identical to the latter:

Code Block
languagejava
titleUsing AMQP component
// Consuming from AMQP queue
from("amqp:queue:incoming").to(...);
 
// Sending message to the AMQP topic
from(...).to("amqp:topic:notify");

Using topics

To have using topics working with camel-amqp you need to configure the component to use topic:// as topic prefix, as shown below:

...