This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new 00f022e04 Fix #3180: remove the deprecated http-secured-* and
jms-pooled-apache-artemis-* Kamelets (#3191)
00f022e04 is described below
commit 00f022e0464fb3aae7e23851a9256d7db21e29e8
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Nov 18 13:16:41 2026 +0100
Fix #3180: remove the deprecated http-secured-* and
jms-pooled-apache-artemis-* Kamelets (#3191)
They were deprecated in 4.24 by #3168 and #3169, a deprecation that was
never released, so they are removed in 4.24 too. Use http-sink,
http-source, jms-apache-artemis-sink and jms-apache-artemis-source.
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../camel-kamelets-catalog-sbom.json | 34 +----
docs/modules/ROOT/nav.adoc | 4 -
.../partials/http-secured-source-description.adoc | 48 -------
...s-pooled-apache-artemis-source-description.adoc | 42 ------
kamelets/http-secured-sink.kamelet.yaml | 144 -------------------
kamelets/http-secured-source.kamelet.yaml | 153 ---------------------
.../jms-pooled-apache-artemis-sink.kamelet.yaml | 121 ----------------
.../jms-pooled-apache-artemis-source.kamelet.yaml | 137 ------------------
.../catalog/model/KameletPrefixSchemeEnum.java | 1 -
.../kamelets/catalog/KameletsCatalogTest.java | 2 -
.../main/resources/META-INF/kamelets-index.json | 40 ------
.../kamelets/http-secured-sink.kamelet.yaml | 144 -------------------
.../kamelets/http-secured-source.kamelet.yaml | 153 ---------------------
.../jms-pooled-apache-artemis-sink.kamelet.yaml | 121 ----------------
.../jms-pooled-apache-artemis-source.kamelet.yaml | 137 ------------------
.../pipes/camel-k/http-secured-sink-pipe.yaml | 18 ---
.../pipes/camel-k/http-secured-source-pipe.yaml | 18 ---
templates/pipes/core/http-secured-sink-pipe.yaml | 11 --
templates/pipes/core/http-secured-source-pipe.yaml | 8 --
19 files changed, 1 insertion(+), 1335 deletions(-)
diff --git a/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json
b/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json
index 096b32681..d19f19ac2 100644
--- a/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json
+++ b/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json
@@ -521,16 +521,6 @@
"type" : "library",
"name" : "hoist-field-action",
"version" : "4.24.0-SNAPSHOT"
- }, {
- "bom-ref" : "kamelet:http-secured-sink",
- "type" : "library",
- "name" : "http-secured-sink",
- "version" : "4.24.0-SNAPSHOT"
- }, {
- "bom-ref" : "kamelet:http-secured-source",
- "type" : "library",
- "name" : "http-secured-source",
- "version" : "4.24.0-SNAPSHOT"
}, {
"bom-ref" : "kamelet:http-sink",
"type" : "library",
@@ -641,16 +631,6 @@
"type" : "library",
"name" : "jms-ibm-mq-source",
"version" : "4.24.0-SNAPSHOT"
- }, {
- "bom-ref" : "kamelet:jms-pooled-apache-artemis-sink",
- "type" : "library",
- "name" : "jms-pooled-apache-artemis-sink",
- "version" : "4.24.0-SNAPSHOT"
- }, {
- "bom-ref" : "kamelet:jms-pooled-apache-artemis-source",
- "type" : "library",
- "name" : "jms-pooled-apache-artemis-source",
- "version" : "4.24.0-SNAPSHOT"
}, {
"bom-ref" : "kamelet:jolt-transformation-action",
"type" : "library",
@@ -2390,7 +2370,7 @@
} ],
"dependencies" : [ {
"ref" : "camel-kamelets-catalog",
- "dependsOn" : [ "kamelet:avro-deserialize-action",
"kamelet:avro-serialize-action", "kamelet:aws-bedrock-agent-runtime-sink",
"kamelet:aws-bedrock-agent-sink", "kamelet:aws-bedrock-text-sink",
"kamelet:aws-cloudtrail-source", "kamelet:aws-cloudwatch-sink",
"kamelet:aws-comprehend-sink", "kamelet:aws-ddb-sink",
"kamelet:aws-ddb-streams-source", "kamelet:aws-ec2-sink",
"kamelet:aws-eventbridge-sink", "kamelet:aws-kinesis-firehose-sink",
"kamelet:aws-kinesis-sink", "kamelet:aws-kinesis- [...]
+ "dependsOn" : [ "kamelet:avro-deserialize-action",
"kamelet:avro-serialize-action", "kamelet:aws-bedrock-agent-runtime-sink",
"kamelet:aws-bedrock-agent-sink", "kamelet:aws-bedrock-text-sink",
"kamelet:aws-cloudtrail-source", "kamelet:aws-cloudwatch-sink",
"kamelet:aws-comprehend-sink", "kamelet:aws-ddb-sink",
"kamelet:aws-ddb-streams-source", "kamelet:aws-ec2-sink",
"kamelet:aws-eventbridge-sink", "kamelet:aws-kinesis-firehose-sink",
"kamelet:aws-kinesis-sink", "kamelet:aws-kinesis- [...]
}, {
"ref" : "kamelet:avro-deserialize-action",
"dependsOn" : [ "pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
@@ -2697,12 +2677,6 @@
}, {
"ref" : "kamelet:hoist-field-action",
"dependsOn" : [ "pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
- }, {
- "ref" : "kamelet:http-secured-sink",
- "dependsOn" : [ "pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
- }, {
- "ref" : "kamelet:http-secured-source",
- "dependsOn" : [ "pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
}, {
"ref" : "kamelet:http-sink",
"dependsOn" : [ "pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
@@ -2769,12 +2743,6 @@
}, {
"ref" : "kamelet:jms-ibm-mq-source",
"dependsOn" : [ "pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
- }, {
- "ref" : "kamelet:jms-pooled-apache-artemis-sink",
- "dependsOn" : [
"pkg:maven/org.apache.activemq/[email protected]",
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.messaginghub/[email protected]" ]
- }, {
- "ref" : "kamelet:jms-pooled-apache-artemis-source",
- "dependsOn" : [
"pkg:maven/org.apache.activemq/[email protected]",
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.messaginghub/[email protected]" ]
}, {
"ref" : "kamelet:jolt-transformation-action",
"dependsOn" : [ "pkg:maven/org.apache.camel/[email protected]",
"pkg:maven/org.apache.camel/[email protected]" ]
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 51f3f5281..4189f4a44 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -101,8 +101,6 @@
* xref:has-header-filter-action.adoc[]
* xref:header-matches-filter-action.adoc[]
* xref:hoist-field-action.adoc[]
-* xref:http-secured-sink.adoc[]
-* xref:http-secured-source.adoc[]
* xref:http-sink.adoc[]
* xref:http-source.adoc[]
* xref:ibm-cos-sink.adoc[]
@@ -125,8 +123,6 @@
* xref:jms-apache-artemis-source.adoc[]
* xref:jms-ibm-mq-sink.adoc[]
* xref:jms-ibm-mq-source.adoc[]
-* xref:jms-pooled-apache-artemis-sink.adoc[]
-* xref:jms-pooled-apache-artemis-source.adoc[]
* xref:jolt-transformation-action.adoc[]
* xref:jslt-action.adoc[]
* xref:json-deserialize-action.adoc[]
diff --git a/docs/modules/ROOT/partials/http-secured-source-description.adoc
b/docs/modules/ROOT/partials/http-secured-source-description.adoc
deleted file mode 100644
index 41a91e4a0..000000000
--- a/docs/modules/ROOT/partials/http-secured-source-description.adoc
+++ /dev/null
@@ -1,48 +0,0 @@
-== HTTP Secured Source Kamelet Description
-
-=== Authentication methods
-
-This Kamelet supports multiple authentication methods:
-
-- OAuth 2.0 client credentials (`oauth2ClientId`, `oauth2ClientSecret`,
`oauth2TokenEndpoint`, `oauth2Scope`)
-- Basic, Digest or NTLM authentication using username and password
(`authUsername`, `authPassword`, `authMethod`)
-- No authentication (if not specified)
-
-=== Output format
-
-The Kamelet periodically fetches a secured HTTP resource with a GET request
and provides the body of the response, as bytes, as output. The `contentType`
option sets the `Accept` header of the request (default: application/json). The
headers of the response are copied to the message, with the status code in
`CamelHttpResponseCode`. A response with a status code of 300 or higher sends
no message; the error is logged.
-
-=== Configuration
-
-The Kamelet requires the following parameters:
-
-- `url`: The URL to fetch for data
-
-Optional parameters:
-- `period`: The interval between fetches in milliseconds (default: 10000)
-- `contentType`: The value of the `Accept` header of the request (default:
"application/json")
-- Authentication parameters (oauth or basic auth credentials)
-
-=== Usage example
-
-```yaml
-apiVersion: camel.apache.org/v1alpha1
-kind: KameletBinding
-metadata:
- name: http-secured-source-binding
-spec:
- source:
- ref:
- kind: Kamelet
- apiVersion: camel.apache.org/v1alpha1
- name: http-secured-source
- properties:
- url: "https://api.example.com/data"
- period: 30000
- contentType: "application/json"
- sink:
- ref:
- kind: Service
- apiVersion: v1
- name: my-service
-```
\ No newline at end of file
diff --git
a/docs/modules/ROOT/partials/jms-pooled-apache-artemis-source-description.adoc
b/docs/modules/ROOT/partials/jms-pooled-apache-artemis-source-description.adoc
deleted file mode 100644
index 912deeec9..000000000
---
a/docs/modules/ROOT/partials/jms-pooled-apache-artemis-source-description.adoc
+++ /dev/null
@@ -1,42 +0,0 @@
-== JMS Pooled Apache Artemis Source Kamelet Description
-
-NOTE: This Kamelet is deprecated and will be removed in a later release. Use
xref:jms-apache-artemis-source.adoc[],
-which has the same `username` and `password` options. It needs no pool
options: a source keeps its connection open.
-
-=== Authentication methods
-
-This Kamelet connects to Apache Artemis JMS broker using:
-
-- Broker URL and connection credentials
-- Pooled connection factory for better performance
-- Username and password authentication
-
-=== Output format
-
-The Kamelet consumes messages from Apache Artemis queues or topics. The body
is text for a JMS text message, bytes for a bytes message, and a Map for a map
message; the JMS properties of the message become headers.
-
-=== Configuration
-
-The Kamelet requires Apache Artemis connection parameters:
-
-- `brokerURL`: The Apache Artemis broker URL
-- `destinationName`: The destination queue or topic name
-- `username`: Username for authentication, when the broker needs a login
-- `password`: Password for authentication, when the broker needs a login
-
-=== Usage example
-
-[source,yaml,subs='+attributes,macros']
-----
-- route:
- from:
- uri: "kamelet:jms-pooled-apache-artemis-source"
- parameters:
- brokerURL: "tcp://artemis-broker:61616"
- destinationName: "my-queue"
- username: "artemisuser"
- password: "artemispass"
- steps:
- - to:
- uri: "kamelet:log-sink"
-----
\ No newline at end of file
diff --git a/kamelets/http-secured-sink.kamelet.yaml
b/kamelets/http-secured-sink.kamelet.yaml
deleted file mode 100644
index 8167666a0..000000000
--- a/kamelets/http-secured-sink.kamelet.yaml
+++ /dev/null
@@ -1,144 +0,0 @@
-# ---------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ---------------------------------------------------------------------------
-apiVersion: camel.apache.org/v1
-kind: Kamelet
-metadata:
- name: http-secured-sink
- annotations:
- camel.apache.org/kamelet.support.level: "Deprecated"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MjAiCmhlaWdodD0iNDIwIiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiPgo8cGF0aCBzdHJva2Utd2lkdGg9IjI2IgpkPSJNMjA5LDE1YTE5NSwxOTUgMCAxLDAgMiwweiIvPgo8cGF0aCBzdHJva2Utd2lkdGg9IjE4IgpkPSJtMjEwLDE1djM5MG0xOTUtMTk1SDE1TTU5LDkwYTI2MCwyNjAgMCAwLDAgMzAyLDAgbTAsMjQwIGEyNjAsMjYwIDAgMCwwLTMwMiwwTTE5NSwyMGEyNTAsMjUwIDAgMCwwIDAsMzgyIG0zMC
[...]
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/kamelet.group: "HTTP"
- camel.apache.org/kamelet.namespace: "HTTP"
- labels:
- camel.apache.org/kamelet.type: "sink"
-spec:
- definition:
- title: "Secured HTTP Sink"
- description: |-
- Deprecated, use `http-sink` instead, which has the same login options:
sends each message to a web service or REST API over HTTP or HTTPS, with a
login.
-
- Use it to push data to a service that needs a login, such as a protected
webhook, an internal REST API, or an API that gives out OAuth 2.0 tokens to
applications. This Kamelet will be removed in a later release: `http-sink` now
takes the same options, so change only the name of the Kamelet.
-
- Input: the body is sent as the request body, as text, bytes or a stream.
Turn structured data such as a Map into JSON text first, for example with
`json-serialize-action`. The `Content-Type` header is sent as the content type
of the request, and the other headers of the message, except the Camel ones,
are sent as HTTP headers.
-
- Output: when it is used inside a route, the body afterwards is the
response of the service.
-
- Good to know: a response with a status code of 300 or higher fails the
message. The address and the method come only from the options; headers on the
message cannot change where it is sent. Log in either with `authUsername` and
`authPassword`, or with `oauth2ClientId`, `oauth2ClientSecret` and
`oauth2TokenEndpoint`: the Kamelet then gets a token from that URL and sends it
as a Bearer token. Without `authenticationPreemptive`, the user and password
are sent only after the service as [...]
- required:
- - url
- type: object
- properties:
- url:
- title: URL
- description: The address to send each message to, with the path and
any query parameters. It must start with `http://` or `https://`.
- type: string
- example: "https://my-service/path"
- pattern: "^(http|https)://.*"
- method:
- title: Method
- description: The HTTP method of the request. Most APIs expect `POST`
to create something and `PUT` to replace it.
- type: string
- default: POST
- enum: ["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "TRACE",
"PATCH"]
- authMethod:
- title: Authentication Method
- description: The login methods to allow when the service asks for a
login, as a comma-separated list of `Basic`, `Digest` and `NTLM`. Basic login
with `authUsername` and `authPassword` works without it.
- type: string
- example: Basic
- authenticationPreemptive:
- title: Authentication Preemptive
- description: If true, `authUsername` and `authPassword` are sent with
Basic login on the first request. If false, they are sent only after the
service answers 401 and asks for them, which takes a second request.
- type: boolean
- default: false
- authUsername:
- title: Authentication Username
- description: The user to log in as, together with `authPassword`.
- type: string
- x-descriptors:
- - urn:camel:group:credentials
- authPassword:
- title: Authentication Password
- description: The password of `authUsername`.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2ClientId:
- title: OAuth2 Client ID
- description: The client ID of the application, as registered with the
OAuth 2.0 provider. With `oauth2ClientSecret`, it is used to get a token from
`oauth2TokenEndpoint` (client credentials grant).
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2ClientSecret:
- title: OAuth2 Client Secret
- description: The client secret of the application, as given by the
OAuth 2.0 provider.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2TokenEndpoint:
- title: OAuth2 Token URL
- description: The URL to get the tokens from, as given by the OAuth 2.0
provider. The Kamelet logs in to it with `oauth2ClientId` and
`oauth2ClientSecret`.
- type: string
- example: https://login.example.com/oauth2/token
- x-descriptors:
- - urn:camel:group:credentials
- oauth2Scope:
- title: OAuth2 Scope
- description: The scope to ask for in the token request, when the OAuth
2.0 provider needs one.
- type: string
- example: orders.write
- x-descriptors:
- - urn:camel:group:credentials
- dependencies:
- - "camel:http"
- - "camel:kamelet"
- template:
- from:
- uri: kamelet:source
- steps:
- - removeHeader:
- name: CamelHttpUri
- - removeHeader:
- name: CamelHttpPath
- - removeHeader:
- name: CamelHttpQuery
- - removeHeader:
- name: CamelHttpRawQuery
- - removeHeader:
- name: CamelRestHttpUri
- - removeHeader:
- name: CamelRestHttpQuery
- - setHeader:
- name: CamelHttpMethod
- expression:
- constant:
- expression: "{{method}}"
- - to:
- uri: "{{url}}"
- parameters:
- authMethod: "{{?authMethod}}"
- authUsername: "{{?authUsername}}"
- authPassword: "{{?authPassword}}"
- oauth2ClientId: "{{?oauth2ClientId}}"
- oauth2ClientSecret: "{{?oauth2ClientSecret}}"
- oauth2Scope: "{{?oauth2Scope}}"
- oauth2TokenEndpoint: "{{?oauth2TokenEndpoint}}"
- authenticationPreemptive: "{{authenticationPreemptive}}"
diff --git a/kamelets/http-secured-source.kamelet.yaml
b/kamelets/http-secured-source.kamelet.yaml
deleted file mode 100644
index ed6cea582..000000000
--- a/kamelets/http-secured-source.kamelet.yaml
+++ /dev/null
@@ -1,153 +0,0 @@
-# ---------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ---------------------------------------------------------------------------
-apiVersion: camel.apache.org/v1
-kind: Kamelet
-metadata:
- name: http-secured-source
- annotations:
- camel.apache.org/kamelet.support.level: "Deprecated"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MjAiCmhlaWdodD0iNDIwIiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiPgo8cGF0aCBzdHJva2Utd2lkdGg9IjI2IgpkPSJNMjA5LDE1YTE5NSwxOTUgMCAxLDAgMiwweiIvPgo8cGF0aCBzdHJva2Utd2lkdGg9IjE4IgpkPSJtMjEwLDE1djM5MG0xOTUtMTk1SDE1TTU5LDkwYTI2MCwyNjAgMCAwLDAgMzAyLDAgbTAsMjQwIGEyNjAsMjYwIDAgMCwwLTMwMiwwTTE5NSwyMGEyNTAsMjUwIDAgMCwwIDAsMzgyIG0zMC
[...]
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/kamelet.group: "HTTP"
- camel.apache.org/kamelet.namespace: "HTTP"
- labels:
- camel.apache.org/kamelet.type: "source"
-spec:
- definition:
- title: "HTTP Secured Source"
- description: |-
- Deprecated, use `http-source` instead, which has the same login options:
fetches a web address at a regular interval with a login, one message per
response.
-
- Use it to poll a protected REST API or feed for its current data, for
example fetch the state of the orders every minute. This Kamelet will be
removed in a later release: `http-source` now takes the same options, so change
only the name of the Kamelet. To receive the requests that other systems send
instead, use `webhook-source`.
-
- Output: the body is the body of the response, as bytes. The headers of
the response, such as `Content-Type`, are copied to the message, and
`CamelHttpResponseCode` holds the status code.
-
- Good to know: it fetches the address every `period` and sends a message
for each response, even when the data has not changed. A response with a status
code of 300 or higher sends no message: the error is logged, and the address is
fetched again at the next period. Log in either with `authUsername` and
`authPassword`, or with `oauth2ClientId`, `oauth2ClientSecret` and
`oauth2TokenEndpoint`: the Kamelet then gets a token from that URL and sends it
as a Bearer token.
- required:
- - url
- type: object
- properties:
- period:
- title: Period between Updates
- description: How long to wait between two requests, in milliseconds.
The default, 10000, is ten seconds.
- type: integer
- default: 10000
- example: 60000
- contentType:
- title: Content Type
- description: The value of the `Accept` header of the request, which
tells the service the kind of response you want, such as `application/json` or
`text/csv`.
- type: string
- default: "application/json"
- example: text/csv
- url:
- title: URL
- description: The address to fetch, with the path and any query
parameters. It must start with `http://` or `https://`.
- type: string
- example: "https://api.example.com/v1/orders/status"
- pattern: "^(http|https)://.*"
- authMethod:
- title: Authentication Method
- description: The login methods to allow when the service asks for a
login, as a comma-separated list of `Basic`, `Digest` and `NTLM`. Basic login
with `authUsername` and `authPassword` works without it.
- type: string
- example: Basic
- authenticationPreemptive:
- title: Authentication Preemptive
- description: If true, `authUsername` and `authPassword` are sent with
Basic login on the first request. If false, they are sent only after the
service answers 401 and asks for them, which takes a second request.
- type: boolean
- default: false
- authUsername:
- title: Authentication Username
- description: The user to log in as, together with `authPassword`.
- type: string
- x-descriptors:
- - urn:camel:group:credentials
- authPassword:
- title: Authentication Password
- description: The password of `authUsername`.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2ClientId:
- title: OAuth2 Client ID
- description: The client ID of the application, as registered with the
OAuth 2.0 provider. With `oauth2ClientSecret`, it is used to get a token from
`oauth2TokenEndpoint` (client credentials grant).
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2ClientSecret:
- title: OAuth2 Client Secret
- description: The client secret of the application, as given by the
OAuth 2.0 provider.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2TokenEndpoint:
- title: OAuth2 Token URL
- description: The URL to get the tokens from, as given by the OAuth 2.0
provider. The Kamelet logs in to it with `oauth2ClientId` and
`oauth2ClientSecret`.
- type: string
- example: https://login.example.com/oauth2/token
- x-descriptors:
- - urn:camel:group:credentials
- oauth2Scope:
- title: OAuth2 Scope
- description: The scope to ask for in the token request, when the OAuth
2.0 provider needs one.
- type: string
- example: orders.write
- x-descriptors:
- - urn:camel:group:credentials
- dataTypes:
- out:
- headers:
- CamelHttpResponseCode:
- title: Status Code
- description: The HTTP status code of the response, such as 200.
- type: integer
- Content-Type:
- title: Content Type
- description: The content type of the response, as sent by the
service, such as `application/json`.
- type: string
- dependencies:
- - "camel:http"
- - "camel:kamelet"
- - "camel:timer"
- template:
- from:
- uri: timer
- parameters:
- timerName: fetch
- period: "{{period}}"
- steps:
- - setHeader:
- name: Accept
- expression:
- constant:
- expression: "{{contentType}}"
- - to:
- uri: "{{url}}"
- parameters:
- authMethod: "{{?authMethod}}"
- authUsername: "{{?authUsername}}"
- authPassword: "{{?authPassword}}"
- oauth2ClientId: "{{?oauth2ClientId}}"
- oauth2ClientSecret: "{{?oauth2ClientSecret}}"
- oauth2Scope: "{{?oauth2Scope}}"
- oauth2TokenEndpoint: "{{?oauth2TokenEndpoint}}"
- authenticationPreemptive: "{{authenticationPreemptive}}"
- - to:
- uri: kamelet:sink
diff --git a/kamelets/jms-pooled-apache-artemis-sink.kamelet.yaml
b/kamelets/jms-pooled-apache-artemis-sink.kamelet.yaml
deleted file mode 100644
index ed3348953..000000000
--- a/kamelets/jms-pooled-apache-artemis-sink.kamelet.yaml
+++ /dev/null
@@ -1,121 +0,0 @@
-# ---------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ---------------------------------------------------------------------------
-apiVersion: camel.apache.org/v1
-kind: Kamelet
-metadata:
- name: jms-pooled-apache-artemis-sink
- annotations:
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Im
[...]
- camel.apache.org/kamelet.support.level: "Deprecated"
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.group: "JMS"
- camel.apache.org/kamelet.namespace: "Messaging"
- labels:
- camel.apache.org/kamelet.type: "sink"
- camel.apache.org/requires.runtime: camel-k
-spec:
- definition:
- title: "JMS Pooled - Apache Artemis Sink"
- description: |-
- Deprecated, use `jms-apache-artemis-sink` instead, which now has the
same options: sends each message to a queue or a topic in an Apache ActiveMQ
Artemis broker.
-
- Use it to hand work to another application through a queue, or to
publish events on a topic, when messages flow steadily: it reuses its
connections, where `jms-apache-artemis-sink` connects anew for each message.
This Kamelet will be removed in a later release: `jms-apache-artemis-sink` now
takes the same options and reuses its connections too, so change only the name
of the Kamelet.
-
- Input: text is sent as a JMS text message, bytes as a JMS bytes message,
and a Map as a JMS map message. The headers of the message, except the Camel
ones, are sent along as JMS properties of the message.
-
- Output: the message is unchanged.
-
- Good to know: Messages go to a queue unless `destinationType` is
`topic`, and a message sent to a topic reaches only the receivers subscribed at
that moment. It connects with no TLS unless `brokerURL` asks for it. It does
not wait for a reply, even when the incoming message expects one, as one from
`webhook-source` does.
- required:
- - destinationName
- - brokerURL
- type: object
- properties:
- destinationType:
- title: "Queue or Topic"
- description: "Whether `destinationName` is a queue (`queue`) or a
topic (`topic`). A queue keeps each message until one receiver takes it; a
topic hands each message to every receiver subscribed at that moment."
- type: string
- default: queue
- destinationName:
- title: "Queue or Topic Name"
- description: "The name of the queue or topic to send the messages to."
- type: string
- example: "orders"
- brokerURL:
- title: "Broker URL"
- description: "The address of the Artemis broker, as `tcp://host:port`;
the usual port is 61616. Add `?sslEnabled=true` for TLS."
- type: string
- example: "tcp://localhost:61616"
- username:
- title: "Broker Username"
- description: "The user name to log in to the broker with. Leave it
empty for a broker that accepts clients without a login."
- type: string
- x-descriptors:
- - urn:camel:group:credentials
- password:
- title: "Broker Password"
- description: "The password to log in to the broker with, for the user
`username`."
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- maxSessionsPerConnection:
- title: "Max Sessions Per Connection"
- description: "The most sessions that can be open at the same time on
each connection of the pool. Each message being sent or received uses one
session."
- type: integer
- default: 500
- maxIdleSessionsPerConnection:
- title: "Max Idle Sessions Per Connection"
- description: "How many unused sessions each connection of the pool
keeps open for reuse. Unused sessions beyond this number are closed."
- type: integer
- default: 500
- connectionIdleTimeout:
- title: "Connection Idle Timeout"
- description: "How long a connection of the pool can stay unused before
it is closed, in milliseconds. For example, 30000 is 30 seconds."
- type: integer
- default: 30000
- dependencies:
- - "camel:jms"
- - "camel:kamelet"
- - "mvn:org.apache.activemq:artemis-jakarta-client-all:2.57.0"
- - "mvn:org.messaginghub:pooled-jms:3.2.6"
- template:
- beans:
- - name: connectionFactoryBean
- type:
"#class:org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory"
- properties:
- brokerURL: "{{brokerURL}}"
- user: "{{?username}}"
- password: "{{?password}}"
- - name: pooledFactoryBean
- type: "#class:org.messaginghub.pooled.jms.JmsPoolConnectionFactory"
- properties:
- connectionFactory: "#bean:{{connectionFactoryBean}}"
- maxSessionsPerConnection: "{{maxSessionsPerConnection}}"
- maxIdleSessionsPerConnection: "{{maxIdleSessionsPerConnection}}"
- connectionIdleTimeout: "{{connectionIdleTimeout}}"
- from:
- uri: kamelet:source
- steps:
- - to:
- uri: jms
- pattern: InOnly
- parameters:
- destinationType: "{{destinationType}}"
- destinationName: "{{destinationName}}"
- connectionFactory: "#bean:{{pooledFactoryBean}}"
diff --git a/kamelets/jms-pooled-apache-artemis-source.kamelet.yaml
b/kamelets/jms-pooled-apache-artemis-source.kamelet.yaml
deleted file mode 100644
index 6a82142c3..000000000
--- a/kamelets/jms-pooled-apache-artemis-source.kamelet.yaml
+++ /dev/null
@@ -1,137 +0,0 @@
-# ---------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ---------------------------------------------------------------------------
-apiVersion: camel.apache.org/v1
-kind: Kamelet
-metadata:
- name: jms-pooled-apache-artemis-source
- annotations:
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Im
[...]
- camel.apache.org/kamelet.support.level: "Deprecated"
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.group: "JMS"
- camel.apache.org/kamelet.namespace: "Messaging"
- labels:
- camel.apache.org/kamelet.type: "source"
- camel.apache.org/requires.runtime: camel-k
-spec:
- definition:
- title: "JMS Pooled - Apache Artemis Source"
- description: |-
- Deprecated, use `jms-apache-artemis-source` instead, which now has the
same login options: receives each message from a queue or a topic in an Apache
ActiveMQ Artemis broker.
-
- Use it to process work that other applications put on a queue, or to
react to events published on a topic, on a broker that needs a login. This
Kamelet will be removed in a later release: `jms-apache-artemis-source` now
takes `username` and `password`, so change the name of the Kamelet and drop the
pool options, which a source does not need because it keeps its connection open.
-
- Output: the body is text for a JMS text message, bytes for a bytes
message, and a Map for a map message. The JMS properties of the message become
headers, along with the JMS headers such as `JMSMessageID`, `JMSDestination`,
`JMSTimestamp`, `JMSPriority` and `JMSRedelivered`.
-
- Good to know: From a queue, each message is removed when it is received,
even when the rest of the flow then fails, and several copies of this source
share the messages. From a topic (`destinationType` set to `topic`), it
receives only the messages sent while it is connected, as the subscription is
not durable. It connects with no TLS unless `brokerURL` asks for it. When the
broker cannot be reached, it starts anyway and tries again every 5 seconds.
- required:
- - destinationName
- - brokerURL
- type: object
- properties:
- destinationType:
- title: "Queue or Topic"
- description: "Whether `destinationName` is a queue (`queue`) or a
topic (`topic`). A queue keeps each message until one receiver takes it; a
topic hands each message to every receiver subscribed at that moment."
- type: string
- default: queue
- destinationName:
- title: "Queue or Topic Name"
- description: "The name of the queue or topic to receive the messages
from."
- example: "orders"
- type: string
- brokerURL:
- title: "Broker URL"
- description: "The address of the Artemis broker, as `tcp://host:port`;
the usual port is 61616. Add `?sslEnabled=true` for TLS."
- type: string
- example: "tcp://localhost:61616"
- username:
- title: "Broker Username"
- description: "The user name to log in to the broker with. Leave it
empty for a broker that accepts clients without a login."
- type: string
- x-descriptors:
- - urn:camel:group:credentials
- password:
- title: "Broker Password"
- description: "The password to log in to the broker with, for the user
`username`."
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- maxSessionsPerConnection:
- title: "Max Sessions Per Connection"
- description: "The most sessions that can be open at the same time on
each connection of the pool. Each message being sent or received uses one
session."
- type: integer
- default: 500
- maxIdleSessionsPerConnection:
- title: "Max Idle Sessions Per Connection"
- description: "How many unused sessions each connection of the pool
keeps open for reuse. Unused sessions beyond this number are closed."
- type: integer
- default: 500
- connectionIdleTimeout:
- title: "Connection Idle Timeout"
- description: "How long a connection of the pool can stay unused before
it is closed, in milliseconds. For example, 30000 is 30 seconds."
- type: integer
- default: 30000
- dataTypes:
- out:
- headers:
- JMSMessageID:
- title: "Message ID"
- description: "The ID the broker gave the message."
- type: string
- JMSDestination:
- title: "Queue or Topic"
- description: "The queue or topic the message was received from."
- type: string
- JMSTimestamp:
- title: "Timestamp"
- description: "When the message was sent, in milliseconds since
1970-01-01 UTC."
- type: integer
- JMSRedelivered:
- title: "Redelivered"
- description: "True when the broker delivers the message again, after
an earlier delivery was not acknowledged."
- type: boolean
- dependencies:
- - "camel:jms"
- - "camel:kamelet"
- - "mvn:org.apache.activemq:artemis-jakarta-client-all:2.57.0"
- - "mvn:org.messaginghub:pooled-jms:3.2.6"
- template:
- beans:
- - name: connectionFactoryBean
- type:
"#class:org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory"
- properties:
- brokerURL: "{{brokerURL}}"
- user: "{{?username}}"
- password: "{{?password}}"
- - name: pooledFactoryBean
- type: "#class:org.messaginghub.pooled.jms.JmsPoolConnectionFactory"
- properties:
- connectionFactory: "#bean:{{connectionFactoryBean}}"
- maxSessionsPerConnection: "{{maxSessionsPerConnection}}"
- maxIdleSessionsPerConnection: "{{maxIdleSessionsPerConnection}}"
- connectionIdleTimeout: "{{connectionIdleTimeout}}"
- from:
- uri: jms
- parameters:
- destinationType: "{{destinationType}}"
- destinationName: "{{destinationName}}"
- connectionFactory: "#bean:{{pooledFactoryBean}}"
- steps:
- - to:
- uri: kamelet:sink
diff --git
a/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java
b/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java
index bbc4d6081..66424c629 100644
---
a/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java
+++
b/library/camel-kamelets-catalog/src/main/java/org/apache/camel/kamelets/catalog/model/KameletPrefixSchemeEnum.java
@@ -63,7 +63,6 @@ public enum KameletPrefixSchemeEnum {
google_storage("google-storage", "google-storage"),
graphql("graphql", "graphql"),
http("http", "http"),
- http_secured("http-secured", "http"),
infinispan("infinispan", "infinispan"),
jira_add_comment("jira-add-comment", "jira"),
jira_add_issue("jira-add-issue", "jira"),
diff --git
a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
index 8d20c70d2..36197d4ab 100644
---
a/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
+++
b/library/camel-kamelets-catalog/src/test/java/org/apache/camel/kamelets/catalog/KameletsCatalogTest.java
@@ -236,8 +236,6 @@ public class KameletsCatalogTest {
verifyHeaders("google-storage-sink", 3);
verifyHeaders("http-source", 2);
verifyHeaders("http-sink", 14);
- verifyHeaders("http-secured-source", 2);
- verifyHeaders("http-secured-sink", 14);
verifyHeaders("infinispan-source", 4);
verifyHeaders("infinispan-sink", 2);
verifyHeaders("jira-add-comment-sink", 1);
diff --git
a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
index 51a0778ef..10e988857 100644
--- a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
+++ b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
@@ -1019,26 +1019,6 @@
"group" : "Actions",
"namespace" : "Transformation",
"provider" : "Apache Software Foundation"
- }, {
- "name" : "http-secured-sink",
- "type" : "sink",
- "supportLevel" : "Deprecated",
- "title" : "Secured HTTP Sink",
- "summary" : "Deprecated, use `http-sink` instead, which has the same login
options: sends each message to a web service or REST API over HTTP or HTTPS,
with a login.",
- "description" : "Deprecated, use `http-sink` instead, which has the same
login options: sends each message to a web service or REST API over HTTP or
HTTPS, with a login.\n\nUse it to push data to a service that needs a login,
such as a protected webhook, an internal REST API, or an API that gives out
OAuth 2.0 tokens to applications. This Kamelet will be removed in a later
release: `http-sink` now takes the same options, so change only the name of the
Kamelet.\n\nInput: the body is s [...]
- "group" : "HTTP",
- "namespace" : "HTTP",
- "provider" : "Apache Software Foundation"
- }, {
- "name" : "http-secured-source",
- "type" : "source",
- "supportLevel" : "Deprecated",
- "title" : "HTTP Secured Source",
- "summary" : "Deprecated, use `http-source` instead, which has the same
login options: fetches a web address at a regular interval with a login, one
message per response.",
- "description" : "Deprecated, use `http-source` instead, which has the same
login options: fetches a web address at a regular interval with a login, one
message per response.\n\nUse it to poll a protected REST API or feed for its
current data, for example fetch the state of the orders every minute. This
Kamelet will be removed in a later release: `http-source` now takes the same
options, so change only the name of the Kamelet. To receive the requests that
other systems send instead, u [...]
- "group" : "HTTP",
- "namespace" : "HTTP",
- "provider" : "Apache Software Foundation"
}, {
"name" : "http-sink",
"type" : "sink",
@@ -1259,26 +1239,6 @@
"group" : "JMS",
"namespace" : "Messaging",
"provider" : "Apache Software Foundation"
- }, {
- "name" : "jms-pooled-apache-artemis-sink",
- "type" : "sink",
- "supportLevel" : "Deprecated",
- "title" : "JMS Pooled - Apache Artemis Sink",
- "summary" : "Deprecated, use `jms-apache-artemis-sink` instead, which now
has the same options: sends each message to a queue or a topic in an Apache
ActiveMQ Artemis broker.",
- "description" : "Deprecated, use `jms-apache-artemis-sink` instead, which
now has the same options: sends each message to a queue or a topic in an Apache
ActiveMQ Artemis broker.\n\nUse it to hand work to another application through
a queue, or to publish events on a topic, when messages flow steadily: it
reuses its connections, where `jms-apache-artemis-sink` connects anew for each
message. This Kamelet will be removed in a later release:
`jms-apache-artemis-sink` now takes the same [...]
- "group" : "JMS",
- "namespace" : "Messaging",
- "provider" : "Apache Software Foundation"
- }, {
- "name" : "jms-pooled-apache-artemis-source",
- "type" : "source",
- "supportLevel" : "Deprecated",
- "title" : "JMS Pooled - Apache Artemis Source",
- "summary" : "Deprecated, use `jms-apache-artemis-source` instead, which
now has the same login options: receives each message from a queue or a topic
in an Apache ActiveMQ Artemis broker.",
- "description" : "Deprecated, use `jms-apache-artemis-source` instead,
which now has the same login options: receives each message from a queue or a
topic in an Apache ActiveMQ Artemis broker.\n\nUse it to process work that
other applications put on a queue, or to react to events published on a topic,
on a broker that needs a login. This Kamelet will be removed in a later
release: `jms-apache-artemis-source` now takes `username` and `password`, so
change the name of the Kamelet and dr [...]
- "group" : "JMS",
- "namespace" : "Messaging",
- "provider" : "Apache Software Foundation"
}, {
"name" : "jolt-transformation-action",
"type" : "action",
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/http-secured-sink.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/http-secured-sink.kamelet.yaml
deleted file mode 100644
index 8167666a0..000000000
---
a/library/camel-kamelets/src/main/resources/kamelets/http-secured-sink.kamelet.yaml
+++ /dev/null
@@ -1,144 +0,0 @@
-# ---------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ---------------------------------------------------------------------------
-apiVersion: camel.apache.org/v1
-kind: Kamelet
-metadata:
- name: http-secured-sink
- annotations:
- camel.apache.org/kamelet.support.level: "Deprecated"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MjAiCmhlaWdodD0iNDIwIiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiPgo8cGF0aCBzdHJva2Utd2lkdGg9IjI2IgpkPSJNMjA5LDE1YTE5NSwxOTUgMCAxLDAgMiwweiIvPgo8cGF0aCBzdHJva2Utd2lkdGg9IjE4IgpkPSJtMjEwLDE1djM5MG0xOTUtMTk1SDE1TTU5LDkwYTI2MCwyNjAgMCAwLDAgMzAyLDAgbTAsMjQwIGEyNjAsMjYwIDAgMCwwLTMwMiwwTTE5NSwyMGEyNTAsMjUwIDAgMCwwIDAsMzgyIG0zMC
[...]
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/kamelet.group: "HTTP"
- camel.apache.org/kamelet.namespace: "HTTP"
- labels:
- camel.apache.org/kamelet.type: "sink"
-spec:
- definition:
- title: "Secured HTTP Sink"
- description: |-
- Deprecated, use `http-sink` instead, which has the same login options:
sends each message to a web service or REST API over HTTP or HTTPS, with a
login.
-
- Use it to push data to a service that needs a login, such as a protected
webhook, an internal REST API, or an API that gives out OAuth 2.0 tokens to
applications. This Kamelet will be removed in a later release: `http-sink` now
takes the same options, so change only the name of the Kamelet.
-
- Input: the body is sent as the request body, as text, bytes or a stream.
Turn structured data such as a Map into JSON text first, for example with
`json-serialize-action`. The `Content-Type` header is sent as the content type
of the request, and the other headers of the message, except the Camel ones,
are sent as HTTP headers.
-
- Output: when it is used inside a route, the body afterwards is the
response of the service.
-
- Good to know: a response with a status code of 300 or higher fails the
message. The address and the method come only from the options; headers on the
message cannot change where it is sent. Log in either with `authUsername` and
`authPassword`, or with `oauth2ClientId`, `oauth2ClientSecret` and
`oauth2TokenEndpoint`: the Kamelet then gets a token from that URL and sends it
as a Bearer token. Without `authenticationPreemptive`, the user and password
are sent only after the service as [...]
- required:
- - url
- type: object
- properties:
- url:
- title: URL
- description: The address to send each message to, with the path and
any query parameters. It must start with `http://` or `https://`.
- type: string
- example: "https://my-service/path"
- pattern: "^(http|https)://.*"
- method:
- title: Method
- description: The HTTP method of the request. Most APIs expect `POST`
to create something and `PUT` to replace it.
- type: string
- default: POST
- enum: ["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "TRACE",
"PATCH"]
- authMethod:
- title: Authentication Method
- description: The login methods to allow when the service asks for a
login, as a comma-separated list of `Basic`, `Digest` and `NTLM`. Basic login
with `authUsername` and `authPassword` works without it.
- type: string
- example: Basic
- authenticationPreemptive:
- title: Authentication Preemptive
- description: If true, `authUsername` and `authPassword` are sent with
Basic login on the first request. If false, they are sent only after the
service answers 401 and asks for them, which takes a second request.
- type: boolean
- default: false
- authUsername:
- title: Authentication Username
- description: The user to log in as, together with `authPassword`.
- type: string
- x-descriptors:
- - urn:camel:group:credentials
- authPassword:
- title: Authentication Password
- description: The password of `authUsername`.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2ClientId:
- title: OAuth2 Client ID
- description: The client ID of the application, as registered with the
OAuth 2.0 provider. With `oauth2ClientSecret`, it is used to get a token from
`oauth2TokenEndpoint` (client credentials grant).
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2ClientSecret:
- title: OAuth2 Client Secret
- description: The client secret of the application, as given by the
OAuth 2.0 provider.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2TokenEndpoint:
- title: OAuth2 Token URL
- description: The URL to get the tokens from, as given by the OAuth 2.0
provider. The Kamelet logs in to it with `oauth2ClientId` and
`oauth2ClientSecret`.
- type: string
- example: https://login.example.com/oauth2/token
- x-descriptors:
- - urn:camel:group:credentials
- oauth2Scope:
- title: OAuth2 Scope
- description: The scope to ask for in the token request, when the OAuth
2.0 provider needs one.
- type: string
- example: orders.write
- x-descriptors:
- - urn:camel:group:credentials
- dependencies:
- - "camel:http"
- - "camel:kamelet"
- template:
- from:
- uri: kamelet:source
- steps:
- - removeHeader:
- name: CamelHttpUri
- - removeHeader:
- name: CamelHttpPath
- - removeHeader:
- name: CamelHttpQuery
- - removeHeader:
- name: CamelHttpRawQuery
- - removeHeader:
- name: CamelRestHttpUri
- - removeHeader:
- name: CamelRestHttpQuery
- - setHeader:
- name: CamelHttpMethod
- expression:
- constant:
- expression: "{{method}}"
- - to:
- uri: "{{url}}"
- parameters:
- authMethod: "{{?authMethod}}"
- authUsername: "{{?authUsername}}"
- authPassword: "{{?authPassword}}"
- oauth2ClientId: "{{?oauth2ClientId}}"
- oauth2ClientSecret: "{{?oauth2ClientSecret}}"
- oauth2Scope: "{{?oauth2Scope}}"
- oauth2TokenEndpoint: "{{?oauth2TokenEndpoint}}"
- authenticationPreemptive: "{{authenticationPreemptive}}"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/http-secured-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/http-secured-source.kamelet.yaml
deleted file mode 100644
index ed6cea582..000000000
---
a/library/camel-kamelets/src/main/resources/kamelets/http-secured-source.kamelet.yaml
+++ /dev/null
@@ -1,153 +0,0 @@
-# ---------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ---------------------------------------------------------------------------
-apiVersion: camel.apache.org/v1
-kind: Kamelet
-metadata:
- name: http-secured-source
- annotations:
- camel.apache.org/kamelet.support.level: "Deprecated"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MjAiCmhlaWdodD0iNDIwIiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiPgo8cGF0aCBzdHJva2Utd2lkdGg9IjI2IgpkPSJNMjA5LDE1YTE5NSwxOTUgMCAxLDAgMiwweiIvPgo8cGF0aCBzdHJva2Utd2lkdGg9IjE4IgpkPSJtMjEwLDE1djM5MG0xOTUtMTk1SDE1TTU5LDkwYTI2MCwyNjAgMCAwLDAgMzAyLDAgbTAsMjQwIGEyNjAsMjYwIDAgMCwwLTMwMiwwTTE5NSwyMGEyNTAsMjUwIDAgMCwwIDAsMzgyIG0zMC
[...]
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/kamelet.group: "HTTP"
- camel.apache.org/kamelet.namespace: "HTTP"
- labels:
- camel.apache.org/kamelet.type: "source"
-spec:
- definition:
- title: "HTTP Secured Source"
- description: |-
- Deprecated, use `http-source` instead, which has the same login options:
fetches a web address at a regular interval with a login, one message per
response.
-
- Use it to poll a protected REST API or feed for its current data, for
example fetch the state of the orders every minute. This Kamelet will be
removed in a later release: `http-source` now takes the same options, so change
only the name of the Kamelet. To receive the requests that other systems send
instead, use `webhook-source`.
-
- Output: the body is the body of the response, as bytes. The headers of
the response, such as `Content-Type`, are copied to the message, and
`CamelHttpResponseCode` holds the status code.
-
- Good to know: it fetches the address every `period` and sends a message
for each response, even when the data has not changed. A response with a status
code of 300 or higher sends no message: the error is logged, and the address is
fetched again at the next period. Log in either with `authUsername` and
`authPassword`, or with `oauth2ClientId`, `oauth2ClientSecret` and
`oauth2TokenEndpoint`: the Kamelet then gets a token from that URL and sends it
as a Bearer token.
- required:
- - url
- type: object
- properties:
- period:
- title: Period between Updates
- description: How long to wait between two requests, in milliseconds.
The default, 10000, is ten seconds.
- type: integer
- default: 10000
- example: 60000
- contentType:
- title: Content Type
- description: The value of the `Accept` header of the request, which
tells the service the kind of response you want, such as `application/json` or
`text/csv`.
- type: string
- default: "application/json"
- example: text/csv
- url:
- title: URL
- description: The address to fetch, with the path and any query
parameters. It must start with `http://` or `https://`.
- type: string
- example: "https://api.example.com/v1/orders/status"
- pattern: "^(http|https)://.*"
- authMethod:
- title: Authentication Method
- description: The login methods to allow when the service asks for a
login, as a comma-separated list of `Basic`, `Digest` and `NTLM`. Basic login
with `authUsername` and `authPassword` works without it.
- type: string
- example: Basic
- authenticationPreemptive:
- title: Authentication Preemptive
- description: If true, `authUsername` and `authPassword` are sent with
Basic login on the first request. If false, they are sent only after the
service answers 401 and asks for them, which takes a second request.
- type: boolean
- default: false
- authUsername:
- title: Authentication Username
- description: The user to log in as, together with `authPassword`.
- type: string
- x-descriptors:
- - urn:camel:group:credentials
- authPassword:
- title: Authentication Password
- description: The password of `authUsername`.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2ClientId:
- title: OAuth2 Client ID
- description: The client ID of the application, as registered with the
OAuth 2.0 provider. With `oauth2ClientSecret`, it is used to get a token from
`oauth2TokenEndpoint` (client credentials grant).
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2ClientSecret:
- title: OAuth2 Client Secret
- description: The client secret of the application, as given by the
OAuth 2.0 provider.
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- oauth2TokenEndpoint:
- title: OAuth2 Token URL
- description: The URL to get the tokens from, as given by the OAuth 2.0
provider. The Kamelet logs in to it with `oauth2ClientId` and
`oauth2ClientSecret`.
- type: string
- example: https://login.example.com/oauth2/token
- x-descriptors:
- - urn:camel:group:credentials
- oauth2Scope:
- title: OAuth2 Scope
- description: The scope to ask for in the token request, when the OAuth
2.0 provider needs one.
- type: string
- example: orders.write
- x-descriptors:
- - urn:camel:group:credentials
- dataTypes:
- out:
- headers:
- CamelHttpResponseCode:
- title: Status Code
- description: The HTTP status code of the response, such as 200.
- type: integer
- Content-Type:
- title: Content Type
- description: The content type of the response, as sent by the
service, such as `application/json`.
- type: string
- dependencies:
- - "camel:http"
- - "camel:kamelet"
- - "camel:timer"
- template:
- from:
- uri: timer
- parameters:
- timerName: fetch
- period: "{{period}}"
- steps:
- - setHeader:
- name: Accept
- expression:
- constant:
- expression: "{{contentType}}"
- - to:
- uri: "{{url}}"
- parameters:
- authMethod: "{{?authMethod}}"
- authUsername: "{{?authUsername}}"
- authPassword: "{{?authPassword}}"
- oauth2ClientId: "{{?oauth2ClientId}}"
- oauth2ClientSecret: "{{?oauth2ClientSecret}}"
- oauth2Scope: "{{?oauth2Scope}}"
- oauth2TokenEndpoint: "{{?oauth2TokenEndpoint}}"
- authenticationPreemptive: "{{authenticationPreemptive}}"
- - to:
- uri: kamelet:sink
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/jms-pooled-apache-artemis-sink.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/jms-pooled-apache-artemis-sink.kamelet.yaml
deleted file mode 100644
index ed3348953..000000000
---
a/library/camel-kamelets/src/main/resources/kamelets/jms-pooled-apache-artemis-sink.kamelet.yaml
+++ /dev/null
@@ -1,121 +0,0 @@
-# ---------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ---------------------------------------------------------------------------
-apiVersion: camel.apache.org/v1
-kind: Kamelet
-metadata:
- name: jms-pooled-apache-artemis-sink
- annotations:
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Im
[...]
- camel.apache.org/kamelet.support.level: "Deprecated"
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.group: "JMS"
- camel.apache.org/kamelet.namespace: "Messaging"
- labels:
- camel.apache.org/kamelet.type: "sink"
- camel.apache.org/requires.runtime: camel-k
-spec:
- definition:
- title: "JMS Pooled - Apache Artemis Sink"
- description: |-
- Deprecated, use `jms-apache-artemis-sink` instead, which now has the
same options: sends each message to a queue or a topic in an Apache ActiveMQ
Artemis broker.
-
- Use it to hand work to another application through a queue, or to
publish events on a topic, when messages flow steadily: it reuses its
connections, where `jms-apache-artemis-sink` connects anew for each message.
This Kamelet will be removed in a later release: `jms-apache-artemis-sink` now
takes the same options and reuses its connections too, so change only the name
of the Kamelet.
-
- Input: text is sent as a JMS text message, bytes as a JMS bytes message,
and a Map as a JMS map message. The headers of the message, except the Camel
ones, are sent along as JMS properties of the message.
-
- Output: the message is unchanged.
-
- Good to know: Messages go to a queue unless `destinationType` is
`topic`, and a message sent to a topic reaches only the receivers subscribed at
that moment. It connects with no TLS unless `brokerURL` asks for it. It does
not wait for a reply, even when the incoming message expects one, as one from
`webhook-source` does.
- required:
- - destinationName
- - brokerURL
- type: object
- properties:
- destinationType:
- title: "Queue or Topic"
- description: "Whether `destinationName` is a queue (`queue`) or a
topic (`topic`). A queue keeps each message until one receiver takes it; a
topic hands each message to every receiver subscribed at that moment."
- type: string
- default: queue
- destinationName:
- title: "Queue or Topic Name"
- description: "The name of the queue or topic to send the messages to."
- type: string
- example: "orders"
- brokerURL:
- title: "Broker URL"
- description: "The address of the Artemis broker, as `tcp://host:port`;
the usual port is 61616. Add `?sslEnabled=true` for TLS."
- type: string
- example: "tcp://localhost:61616"
- username:
- title: "Broker Username"
- description: "The user name to log in to the broker with. Leave it
empty for a broker that accepts clients without a login."
- type: string
- x-descriptors:
- - urn:camel:group:credentials
- password:
- title: "Broker Password"
- description: "The password to log in to the broker with, for the user
`username`."
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- maxSessionsPerConnection:
- title: "Max Sessions Per Connection"
- description: "The most sessions that can be open at the same time on
each connection of the pool. Each message being sent or received uses one
session."
- type: integer
- default: 500
- maxIdleSessionsPerConnection:
- title: "Max Idle Sessions Per Connection"
- description: "How many unused sessions each connection of the pool
keeps open for reuse. Unused sessions beyond this number are closed."
- type: integer
- default: 500
- connectionIdleTimeout:
- title: "Connection Idle Timeout"
- description: "How long a connection of the pool can stay unused before
it is closed, in milliseconds. For example, 30000 is 30 seconds."
- type: integer
- default: 30000
- dependencies:
- - "camel:jms"
- - "camel:kamelet"
- - "mvn:org.apache.activemq:artemis-jakarta-client-all:2.57.0"
- - "mvn:org.messaginghub:pooled-jms:3.2.6"
- template:
- beans:
- - name: connectionFactoryBean
- type:
"#class:org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory"
- properties:
- brokerURL: "{{brokerURL}}"
- user: "{{?username}}"
- password: "{{?password}}"
- - name: pooledFactoryBean
- type: "#class:org.messaginghub.pooled.jms.JmsPoolConnectionFactory"
- properties:
- connectionFactory: "#bean:{{connectionFactoryBean}}"
- maxSessionsPerConnection: "{{maxSessionsPerConnection}}"
- maxIdleSessionsPerConnection: "{{maxIdleSessionsPerConnection}}"
- connectionIdleTimeout: "{{connectionIdleTimeout}}"
- from:
- uri: kamelet:source
- steps:
- - to:
- uri: jms
- pattern: InOnly
- parameters:
- destinationType: "{{destinationType}}"
- destinationName: "{{destinationName}}"
- connectionFactory: "#bean:{{pooledFactoryBean}}"
diff --git
a/library/camel-kamelets/src/main/resources/kamelets/jms-pooled-apache-artemis-source.kamelet.yaml
b/library/camel-kamelets/src/main/resources/kamelets/jms-pooled-apache-artemis-source.kamelet.yaml
deleted file mode 100644
index 6a82142c3..000000000
---
a/library/camel-kamelets/src/main/resources/kamelets/jms-pooled-apache-artemis-source.kamelet.yaml
+++ /dev/null
@@ -1,137 +0,0 @@
-# ---------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ---------------------------------------------------------------------------
-apiVersion: camel.apache.org/v1
-kind: Kamelet
-metadata:
- name: jms-pooled-apache-artemis-source
- annotations:
- camel.apache.org/kamelet.icon:
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Im
[...]
- camel.apache.org/kamelet.support.level: "Deprecated"
- camel.apache.org/provider: "Apache Software Foundation"
- camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
- camel.apache.org/kamelet.group: "JMS"
- camel.apache.org/kamelet.namespace: "Messaging"
- labels:
- camel.apache.org/kamelet.type: "source"
- camel.apache.org/requires.runtime: camel-k
-spec:
- definition:
- title: "JMS Pooled - Apache Artemis Source"
- description: |-
- Deprecated, use `jms-apache-artemis-source` instead, which now has the
same login options: receives each message from a queue or a topic in an Apache
ActiveMQ Artemis broker.
-
- Use it to process work that other applications put on a queue, or to
react to events published on a topic, on a broker that needs a login. This
Kamelet will be removed in a later release: `jms-apache-artemis-source` now
takes `username` and `password`, so change the name of the Kamelet and drop the
pool options, which a source does not need because it keeps its connection open.
-
- Output: the body is text for a JMS text message, bytes for a bytes
message, and a Map for a map message. The JMS properties of the message become
headers, along with the JMS headers such as `JMSMessageID`, `JMSDestination`,
`JMSTimestamp`, `JMSPriority` and `JMSRedelivered`.
-
- Good to know: From a queue, each message is removed when it is received,
even when the rest of the flow then fails, and several copies of this source
share the messages. From a topic (`destinationType` set to `topic`), it
receives only the messages sent while it is connected, as the subscription is
not durable. It connects with no TLS unless `brokerURL` asks for it. When the
broker cannot be reached, it starts anyway and tries again every 5 seconds.
- required:
- - destinationName
- - brokerURL
- type: object
- properties:
- destinationType:
- title: "Queue or Topic"
- description: "Whether `destinationName` is a queue (`queue`) or a
topic (`topic`). A queue keeps each message until one receiver takes it; a
topic hands each message to every receiver subscribed at that moment."
- type: string
- default: queue
- destinationName:
- title: "Queue or Topic Name"
- description: "The name of the queue or topic to receive the messages
from."
- example: "orders"
- type: string
- brokerURL:
- title: "Broker URL"
- description: "The address of the Artemis broker, as `tcp://host:port`;
the usual port is 61616. Add `?sslEnabled=true` for TLS."
- type: string
- example: "tcp://localhost:61616"
- username:
- title: "Broker Username"
- description: "The user name to log in to the broker with. Leave it
empty for a broker that accepts clients without a login."
- type: string
- x-descriptors:
- - urn:camel:group:credentials
- password:
- title: "Broker Password"
- description: "The password to log in to the broker with, for the user
`username`."
- type: string
- format: password
- x-descriptors:
- - urn:camel:group:credentials
- maxSessionsPerConnection:
- title: "Max Sessions Per Connection"
- description: "The most sessions that can be open at the same time on
each connection of the pool. Each message being sent or received uses one
session."
- type: integer
- default: 500
- maxIdleSessionsPerConnection:
- title: "Max Idle Sessions Per Connection"
- description: "How many unused sessions each connection of the pool
keeps open for reuse. Unused sessions beyond this number are closed."
- type: integer
- default: 500
- connectionIdleTimeout:
- title: "Connection Idle Timeout"
- description: "How long a connection of the pool can stay unused before
it is closed, in milliseconds. For example, 30000 is 30 seconds."
- type: integer
- default: 30000
- dataTypes:
- out:
- headers:
- JMSMessageID:
- title: "Message ID"
- description: "The ID the broker gave the message."
- type: string
- JMSDestination:
- title: "Queue or Topic"
- description: "The queue or topic the message was received from."
- type: string
- JMSTimestamp:
- title: "Timestamp"
- description: "When the message was sent, in milliseconds since
1970-01-01 UTC."
- type: integer
- JMSRedelivered:
- title: "Redelivered"
- description: "True when the broker delivers the message again, after
an earlier delivery was not acknowledged."
- type: boolean
- dependencies:
- - "camel:jms"
- - "camel:kamelet"
- - "mvn:org.apache.activemq:artemis-jakarta-client-all:2.57.0"
- - "mvn:org.messaginghub:pooled-jms:3.2.6"
- template:
- beans:
- - name: connectionFactoryBean
- type:
"#class:org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory"
- properties:
- brokerURL: "{{brokerURL}}"
- user: "{{?username}}"
- password: "{{?password}}"
- - name: pooledFactoryBean
- type: "#class:org.messaginghub.pooled.jms.JmsPoolConnectionFactory"
- properties:
- connectionFactory: "#bean:{{connectionFactoryBean}}"
- maxSessionsPerConnection: "{{maxSessionsPerConnection}}"
- maxIdleSessionsPerConnection: "{{maxIdleSessionsPerConnection}}"
- connectionIdleTimeout: "{{connectionIdleTimeout}}"
- from:
- uri: jms
- parameters:
- destinationType: "{{destinationType}}"
- destinationName: "{{destinationName}}"
- connectionFactory: "#bean:{{pooledFactoryBean}}"
- steps:
- - to:
- uri: kamelet:sink
diff --git a/templates/pipes/camel-k/http-secured-sink-pipe.yaml
b/templates/pipes/camel-k/http-secured-sink-pipe.yaml
deleted file mode 100644
index 45988449b..000000000
--- a/templates/pipes/camel-k/http-secured-sink-pipe.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-apiVersion: camel.apache.org/v1
-kind: Pipe
-metadata:
- name: http-secured-sink-pipe
-spec:
- source:
- ref:
- kind: KafkaTopic
- apiVersion: kafka.strimzi.io/v1beta1
- name: my-topic
- sink:
- ref:
- kind: Kamelet
- apiVersion: camel.apache.org/v1
- name: http-secured-sink
- properties:
- url: "https://my-service/path"
-
\ No newline at end of file
diff --git a/templates/pipes/camel-k/http-secured-source-pipe.yaml
b/templates/pipes/camel-k/http-secured-source-pipe.yaml
deleted file mode 100644
index e98ac4f18..000000000
--- a/templates/pipes/camel-k/http-secured-source-pipe.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-apiVersion: camel.apache.org/v1
-kind: Pipe
-metadata:
- name: http-secured-source-pipe
-spec:
- source:
- ref:
- kind: Kamelet
- apiVersion: camel.apache.org/v1
- name: http-secured-source
- properties:
- url:
"https://gist.githubusercontent.com/nicolaferraro/e3c72ace3c751f9f88273896611ce5fe/raw/3b6f54060bacb56b6719b7386a4645cb59ad6cc1/quote.json"
- sink:
- ref:
- kind: KafkaTopic
- apiVersion: kafka.strimzi.io/v1beta1
- name: my-topic
-
\ No newline at end of file
diff --git a/templates/pipes/core/http-secured-sink-pipe.yaml
b/templates/pipes/core/http-secured-sink-pipe.yaml
deleted file mode 100644
index 9f774ee42..000000000
--- a/templates/pipes/core/http-secured-sink-pipe.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-- route:
- from:
- uri: "kamelet:timer-source"
- parameters:
- period: 1000
- message: "Hello Camel JBang"
- steps:
- - to:
- uri: "kamelet:http-secured-sink"
- parameters:
- url: "https://my-service/path"
diff --git a/templates/pipes/core/http-secured-source-pipe.yaml
b/templates/pipes/core/http-secured-source-pipe.yaml
deleted file mode 100644
index 64f635f9f..000000000
--- a/templates/pipes/core/http-secured-source-pipe.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-- route:
- from:
- uri: "kamelet:http-secured-source"
- parameters:
- url:
"https://gist.githubusercontent.com/nicolaferraro/e3c72ace3c751f9f88273896611ce5fe/raw/3b6f54060bacb56b6719b7386a4645cb59ad6cc1/quote.json"
- steps:
- - to:
- uri: "log:info"