You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/10/19 09:47:36 UTC

[PR] CAMEL-25783: camel-jms - the docs show how to connect to a broker, and the AI tools find jms for Artemis and IBM MQ [camel]

davsclaus opened a new pull request, #28097:
URL: https://github.com/apache/camel/pull/28097

   [CAMEL-25783](https://issues.apache.org/jira/browse/CAMEL-25783): the jms page did not show how to connect to a broker in application properties, YAML or Java. In a benchmark of Oct 18-19 2026, a local model building a JMS request-reply example on ActiveMQ Artemis failed that step in 8 of 8 runs: it asked `camel_catalog_doc jms` for connectionFactory, brokerUrl and broker, and `camel_catalog_find` for "artemis", and found nothing.
   
   ## What
   
   - **A new first section, "Connecting to a broker"**: the JMS component needs a `ConnectionFactory` from the broker's client library, created as a bean, set on the component, with a connection pool around it. Without a pool, the component opens a connection for every message it sends.
     - It shows ActiveMQ Artemis with the [pooled-jms](https://github.com/messaginghub/pooled-jms) pool, as `camel infra run artemis` starts it, in tabs: application properties, Java and Spring XML.
     - `camel run` downloads the client libraries for these classes (known third-party libraries of camel-kamelet-main). In a Maven project, add `org.apache.artemis:artemis-jakarta-client` and `org.messaginghub:pooled-jms`.
     - Other brokers work the same way. IBM MQ is named with its connection factory class and settings, and ActiveMQ Classic points to the activemq component.
     - It is the first section because `camel_catalog_doc` returns the start of a component page (1400 characters): the whole properties block is in that excerpt now.
   - **"Configuring different JMS providers"** said "in Spring XML as follows:" and showed no example. It now shows a component named `artemis` with its own connection factory, in application properties and Spring XML.
   - **The ActiveMQ tip** at the top says that for Artemis this component is the one to use.
   - **The AI tools**: `camel_catalog_find` and `camel_catalog_sample` answer "artemis", "activemq artemis", "ibm mq", "ibmmq" and "websphere mq" with the jms component, and a note that points to the new section. `camel_catalog_find` also uses the other intents of `camel_catalog_sample` now, such as "call service" for http.
   
   The setup follows the one of [Forage](https://github.com/KaotoIO/forage): the Artemis `ActiveMQConnectionFactory` wrapped by a pooled-jms `JmsPoolConnectionFactory`.
   
   ## Checks
   
   - The application properties of both sections were run with `camel run` against `camel infra run artemis`. Messages went through `jms:queue:...` with the pooled connection factory, and through `artemis:queue:...` with the named component.
   - The Java tab compiles against artemis-jakarta-client 2.57.0, pooled-jms 3.2.5 and camel-jms. The Spring XML blocks are well-formed. DocExamplesXmlSchemaTest leaves Spring `<bean>` blocks out by design.
   - camel-jbang-core: new tests for the broker names in `camel_catalog_find` and `camel_catalog_sample`. CatalogDocsTest, CatalogSamplesTest, CatalogDocExamplesTest and CatalogDocJavaExamplesTest pass, the latter with the new page in the catalog. All camel-jbang-core tests pass (2307 and 237).
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25783: camel-jms - the docs show how to connect to a broker, and the AI tools find jms for Artemis and IBM MQ [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #28097:
URL: https://github.com/apache/camel/pull/28097#issuecomment-6264754410

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25783: camel-jms - the docs show how to connect to a broker, and the AI tools find jms for Artemis and IBM MQ [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #28097:
URL: https://github.com/apache/camel/pull/28097


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-25783: camel-jms - the docs show how to connect to a broker, and the AI tools find jms for Artemis and IBM MQ [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #28097:
URL: https://github.com/apache/camel/pull/28097#issuecomment-6268107975

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `catalog/camel-catalog`
   - `components/camel-jms`
   - `dsl/camel-jbang/camel-jbang-core`
   
   ---
   
   <details><summary>:microscope: Scalpel shadow comparison — Scalpel: 11 of 706 tested, 25 compile-only — current: 11 all tested</summary>
   
   [Maveniverse Scalpel](https://github.com/maveniverse/scalpel) detected **11 affected modules** (current approach: 11).
   
   **Skip-tests mode would test 11 modules** (3 direct + 10 downstream), **skip tests for 25** (generated code, meta-modules)
   
   <details><summary>Modules Scalpel would test (11)</summary>
   
   - `camel-activemq` ← downstream of org.apache.camel:camel-jms
   - `camel-activemq6` ← downstream of org.apache.camel:camel-jms
   - `camel-amqp` ← downstream of org.apache.camel:camel-jms
   - `camel-jbang-mcp` ← downstream of org.apache.camel:camel-catalog
   - `camel-jbang-plugin-mcp` ← downstream of org.apache.camel:camel-jbang-core
   - `camel-jbang-plugin-tui` ← downstream of org.apache.camel:camel-catalog
   - `camel-jbang-plugin-validate` ← downstream of org.apache.camel:camel-jbang-core
   - `camel-jms` ← components/camel-jms/src/main/docs/jms-component.adoc
   - `camel-launcher-container` ← downstream of org.apache.camel:camel-launcher
   - `camel-yaml-dsl-validator` ← downstream of org.apache.camel:camel-catalog
   - `camel-yaml-dsl-validator-maven-plugin` ← downstream of org.apache.camel:camel-yaml-dsl-validator
   
   </details>
   
   <details><summary>Modules with tests skipped (25)</summary>
   
   - `apache-camel`
   - `camel-allcomponents`
   - `camel-catalog-console`
   - `camel-catalog-maven`
   - `camel-catalog-suggest`
   - `camel-componentdsl`
   - `camel-endpointdsl`
   - `camel-endpointdsl-support`
   - `camel-itest`
   - `camel-jbang-it`
   - `camel-jbang-main`
   - `camel-jbang-plugin-edit`
   - `camel-jbang-plugin-generate`
   - `camel-jbang-plugin-kubernetes`
   - `camel-jbang-plugin-test`
   - `camel-kamelet-main`
   - `camel-launcher`
   - `camel-report-maven-plugin`
   - `camel-route-parser`
   - `camel-yaml-dsl`
   - `camel-yaml-dsl-deserializers`
   - `camel-yaml-dsl-maven-plugin`
   - `coverage`
   - `docs`
   - `dummy-component`
   
   </details>
   
   > :information_source: Shadow mode — Scalpel observes but does not affect test execution. [Learn more](https://github.com/maveniverse/scalpel)
   
   </details>
   
   :warning: **Some tests are disabled on GitHub Actions** (`@DisabledIfSystemProperty(named = "ci.env.name")`) and require manual verification:
   
   - `components/camel-jms`: 3 test(s) disabled on GitHub Actions
   - `dsl/camel-jbang/camel-jbang-core`: 2 test(s) disabled on GitHub Actions
   
   :bulb: **Manual integration tests recommended:**
   
   > You modified `dsl/camel-jbang/camel-jbang-core`. The related integration tests in `dsl/camel-jbang/camel-jbang-it` are excluded from CI. Consider running them manually:
   > ```
   > mvn verify -f dsl/camel-jbang/camel-jbang-it -Djbang-it-test
   > ```
   
   <details><summary>All tested modules (38 modules, 6m 59s total)</summary>
   
   **Total reactor time:** 6m 59s
   
   | Module | Duration | Status |
   | --- | --- | --- |
   | Camel :: Launcher | 50.6s | SUCCESS |
   | Camel :: JBang :: MCP | 44.1s | SUCCESS |
   | Camel :: ActiveMQ 5.x | 42.2s | SUCCESS |
   | Camel :: JBang :: Plugin :: Validate | 28.7s | SUCCESS |
   | Camel :: ActiveMQ 6.x | 27.6s | SUCCESS |
   | Camel :: YAML DSL | 25.1s | SUCCESS |
   | Camel :: Catalog :: Camel Catalog | 23.1s | SUCCESS |
   | Camel :: Component DSL | 21.8s | SUCCESS |
   | Camel :: YAML DSL :: Validator | 21.6s | SUCCESS |
   | Camel :: AMQP | 17.4s | SUCCESS |
   | Camel :: JBang :: Plugin :: Testing | 15.5s | SUCCESS |
   | Camel :: Docs | 15.3s | SUCCESS |
   | Camel :: JBang :: Plugin :: Kubernetes | 13.2s | SUCCESS |
   | Camel :: Kamelet Main | 13.0s | SUCCESS |
   | Camel :: Catalog :: Camel Report Maven Plugin | 13.0s | SUCCESS |
   | Camel :: YAML DSL :: Deserializers | 7.2s | SUCCESS |
   | Camel :: Catalog :: Camel Route Parser | 6.9s | SUCCESS |
   | Camel :: Catalog :: Suggest (deprecated) | 5.6s | SUCCESS |
   | Camel :: All Components Sync point | 4.4s | SUCCESS |
   | Camel :: YAML DSL :: Validator Maven Plugin | 4.1s | SUCCESS |
   | Camel :: YAML DSL :: Maven Plugins | 2.6s | SUCCESS |
   | Camel :: Endpoint DSL :: Support | 2.2s | SUCCESS |
   | Camel :: Assembly | 2.1s | SUCCESS |
   | Camel :: Catalog :: Maven | 2.0s | SUCCESS |
   | Camel :: JBang :: Plugin :: Generate | 1.9s | SUCCESS |
   | Camel :: JBang :: Plugin :: Edit | 1.8s | SUCCESS |
   | Camel :: Coverage | 1.0s | SUCCESS |
   | Camel :: JBang :: Main | 1.0s | SUCCESS |
   | Camel :: Catalog :: Dummy Component | 0.8s | SUCCESS |
   | Camel :: Launcher :: Container | 0.8s | SUCCESS |
   | Camel :: JBang :: Integration tests | 0.8s | SUCCESS |
   | Camel :: Catalog :: Console | 0.7s | SUCCESS |
   | Camel :: JBang :: Plugin :: MCP | 0.7s | SUCCESS |
   | Camel :: Endpoint DSL | n/a |  |
   | Camel :: Integration Tests | n/a |  |
   | Camel :: JBang :: Core | n/a |  |
   | Camel :: JBang :: Plugin :: TUI | n/a |  |
   | Camel :: JMS | n/a |  |
   
   **Top 20 slowest modules:**
   - `Camel :: Launcher` (50.6s)
   - `Camel :: JBang :: MCP` (44.1s)
   - `Camel :: ActiveMQ 5.x` (42.2s)
   - `Camel :: JBang :: Plugin :: Validate` (28.7s)
   - `Camel :: ActiveMQ 6.x` (27.6s)
   - `Camel :: YAML DSL` (25.1s)
   - `Camel :: Catalog :: Camel Catalog` (23.1s)
   - `Camel :: Component DSL` (21.8s)
   - `Camel :: YAML DSL :: Validator` (21.6s)
   - `Camel :: AMQP` (17.4s)
   - `Camel :: JBang :: Plugin :: Testing` (15.5s)
   - `Camel :: Docs` (15.3s)
   - `Camel :: JBang :: Plugin :: Kubernetes` (13.2s)
   - `Camel :: Kamelet Main` (13.0s)
   - `Camel :: Catalog :: Camel Report Maven Plugin` (13.0s)
   - `Camel :: YAML DSL :: Deserializers` (7.2s)
   - `Camel :: Catalog :: Camel Route Parser` (6.9s)
   - `Camel :: Catalog :: Suggest (deprecated)` (5.6s)
   - `Camel :: All Components Sync point` (4.4s)
   - `Camel :: YAML DSL :: Validator Maven Plugin` (4.1s)
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/39232715024)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org