Skip to content

Commit

Permalink
Added JMS source kamelet for Apache Artermis
Browse files Browse the repository at this point in the history
  • Loading branch information
orpiske committed Jun 14, 2021
1 parent 7572fd1 commit 4afbaa2
Show file tree
Hide file tree
Showing 5 changed files with 175 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
* xref:ROOT:insert-header-action.adoc[image:kamelets/insert-header-action.svg[] Insert Header Action]
* xref:ROOT:is-tombstone-filter-action.adoc[image:kamelets/is-tombstone-filter-action.svg[] Is Tombstone Filter Action]
* xref:ROOT:jira-source.adoc[image:kamelets/jira-source.svg[] Jira Source]
* xref:ROOT:jms-apache-artemis-source.adoc[ JMS - Apache Artemis JMS Kamelet Source]
* xref:ROOT:json-deserialize-action.adoc[image:kamelets/json-deserialize-action.svg[] Json Deserialize Action]
* xref:ROOT:json-serialize-action.adoc[image:kamelets/json-serialize-action.svg[] Json Serialize Action]
* xref:ROOT:kafka-manual-commit-action.adoc[image:kamelets/kafka-manual-commit-action.svg[] Kafka Manual Commit Action]
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/has-header-filter-action.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The following table summarizes the configuration options available for the `has-
[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
|===
| Property| Name| Description| Type| Default| Example
| *name {empty}* *| Header Name| The header name to evaluate| string| |
| *name {empty}* *| Header Name| The header name to evaluate| string| | `"headerName"`
|===

NOTE: Fields marked with ({empty}*) are mandatory.
Expand Down Expand Up @@ -47,7 +47,7 @@ spec:
apiVersion: camel.apache.org/v1alpha1
name: has-header-filter-action
properties:
name: "The Header Name"
name: "headerName"
sink:
ref:
kind: InMemoryChannel
Expand Down
65 changes: 65 additions & 0 deletions docs/modules/ROOT/pages/jms-apache-artemis-source.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
= JMS - Apache Artemis JMS Kamelet Source

*Provided by: "Apache Software Foundation"*

*Support Level for this Kamelet is: "Preview"*

A Kamelet that can consume events from an Apache Artemis message broker using JMS

== Configuration Options

The following table summarizes the configuration options available for the `jms-apache-artemis-source` Kamelet:
[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
|===
| Property| Name| Description| Type| Default| Example
| *brokerURL {empty}* *| Broker URL| The JMS URL| string| |
| *destinationName {empty}* *| Destination Name| The JMS destination name| string| |
| destinationType| Destination Type| The JMS destination type (i.e.: queue or topic)| string| `"queue"`|
|===

NOTE: Fields marked with ({empty}*) are mandatory.

== Usage

This section summarizes how the `jms-apache-artemis-source` can be used in various contexts.

=== Knative Source

The `jms-apache-artemis-source` Kamelet can be used as Knative source by binding it to a Knative object.

.jms-apache-artemis-source-binding.yaml
[source,yaml]
----
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: jms-apache-artemis-source-binding
spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: jms-apache-artemis-source
properties:
brokerURL: "The Broker URL"
destinationName: "The Destination Name"
sink:
ref:
kind: InMemoryChannel
apiVersion: messaging.knative.dev/v1
name: mychannel
----

Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.

Save the `jms-apache-artemis-source-binding.yaml` file into your hard drive, then configure it according to your needs.

You can run the source using the following command:

[source,shell]
----
kubectl apply -f jms-apache-artemis-source-binding.yaml
----
// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
54 changes: 54 additions & 0 deletions jms-apache-artemis-source.kamelet.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 4afbaa2

Please sign in to comment.