Chapter 40. JMS - AMQP 1.0 Source
Consume data from any AMQP 1.0 compliant message broker by using the Apache Qpid JMS client.
40.1. Configuration Options Copy linkLink copied to clipboard!
The following table summarizes the configuration options available for the jms-amqp-10-source Kamelet:
| Property | Name | Description | Type | Default | Example |
|---|---|---|---|---|---|
| destinationName * | Destination Name | The JMS destination name. | string | ||
| remoteURI * | Broker URL | The JMS URL. | string | amqp://my-host:31616 | |
| destinationType | Destination Type | The JMS destination type (queue or topic). | string | queue |
* = Fields marked with an asterisk are mandatory.
40.2. Dependencies Copy linkLink copied to clipboard!
40.2.1. Quarkus dependencies Copy linkLink copied to clipboard!
40.3. Usage Copy linkLink copied to clipboard!
40.3.1. Camel JBang usage Copy linkLink copied to clipboard!
40.3.1.1. Prerequisites for JBang Copy linkLink copied to clipboard!
- Install JBang.
You have executed the following command:
jbang app install camel@apache/camel
jbang app install camel@apache/camelCopy to Clipboard Copied! Toggle word wrap Toggle overflow
40.3.1.2. Running a route with JBang Copy linkLink copied to clipboard!
Suppose you have a file named route.yaml with this content:
You can now run it directly through the following command.
camel run route.yaml
camel run route.yaml
40.3.2. Knative Source Copy linkLink copied to clipboard!
You can use the jms-amqp-10-source Kamelet as a Knative source by binding it to a Knative object.
jms-amqp-10-source-binding.yaml
40.3.3. Kafka Source Copy linkLink copied to clipboard!
You can use the jms-amqp-10-source Kamelet as a Kafka source by binding it to a Kafka topic.
jms-amqp-10-source-binding.yaml