This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch 3.40.x in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 099687bb2a83693f720d148a49aa1ec404974253 Author: James Netherton <[email protected]> AuthorDate: Fri Nov 20 14:21:15 2026 +0000 Remove stale native mode limitations and workarounds from documentation Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit b312fa1d6f3e90829f72119cf484f297e0947f74) --- .../ROOT/pages/reference/extensions/a2a.adoc | 3 + .../reference/extensions/azure-eventhubs.adoc | 17 ----- .../reference/extensions/azure-storage-blob.adoc | 17 ----- .../extensions/azure-storage-datalake.adoc | 17 ----- .../reference/extensions/azure-storage-queue.adoc | 17 ----- .../ROOT/pages/reference/extensions/bindy.adoc | 16 ++--- .../pages/reference/extensions/controlbus.adoc | 2 +- .../ROOT/pages/reference/extensions/couchdb.adoc | 6 -- .../ROOT/pages/reference/extensions/crypto.adoc | 7 -- .../pages/reference/extensions/debezium-mysql.adoc | 1 + .../reference/extensions/debezium-postgres.adoc | 1 + .../reference/extensions/debezium-sqlserver.adoc | 1 + .../ROOT/pages/reference/extensions/git.adoc | 6 -- .../pages/reference/extensions/google-pubsub.adoc | 2 +- .../ROOT/pages/reference/extensions/groovy.adoc | 5 -- .../ROOT/pages/reference/extensions/jfr.adoc | 4 +- .../ROOT/pages/reference/extensions/minio.adoc | 5 -- .../ROOT/pages/reference/extensions/yaml-dsl.adoc | 81 +--------------------- .../modules/ROOT/pages/user-guide/native-mode.adoc | 7 +- .../yaml-dsl/runtime/src/main/doc/usage.adoc | 81 +--------------------- .../a2a/runtime/src/main/doc/limitations.adoc | 3 + .../runtime/src/main/doc/usage.adoc | 12 ---- .../runtime/src/main/doc/usage.adoc | 12 ---- .../runtime/src/main/doc/usage.adoc | 12 ---- .../runtime/src/main/doc/usage.adoc | 12 ---- .../bindy/runtime/src/main/doc/limitations.adoc | 16 ++--- .../runtime/src/main/doc/limitations.adoc | 2 +- .../couchdb/runtime/src/main/doc/limitations.adoc | 1 - extensions/crypto/runtime/src/main/doc/usage.adoc | 6 -- .../runtime/src/main/doc/limitations.adoc | 1 + .../runtime/src/main/doc/limitations.adoc | 1 + .../runtime/src/main/doc/limitations.adoc | 1 + .../git/runtime/src/main/doc/configuration.adoc | 1 - .../runtime/src/main/doc/limitations.adoc | 2 +- .../groovy/runtime/src/main/doc/limitations.adoc | 5 -- extensions/jfr/runtime/src/main/doc/usage.adoc | 4 +- .../minio/runtime/src/main/doc/configuration.adoc | 5 -- 37 files changed, 44 insertions(+), 348 deletions(-) diff --git a/docs/modules/ROOT/pages/reference/extensions/a2a.adoc b/docs/modules/ROOT/pages/reference/extensions/a2a.adoc index 67079b96130..6df6aca4a60 100644 --- a/docs/modules/ROOT/pages/reference/extensions/a2a.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/a2a.adoc @@ -72,4 +72,7 @@ Only the `JSONRPC` binding works with the default Quarkus HTTP server (Vert.x / The `HTTP+JSON` binding uses A2A custom-method paths that contain colons, such as `/message:send`. Vert.x Web does not support colon characters in URI path segments, causing these routes to fail. +The A2A component uses `HTTP+JSON` by default, so you must set `protocolBinding=JSONRPC` on your `a2a` endpoints. +Explicitly configuring the `HTTP+JSON` (or `REST`) binding fails with an `IllegalArgumentException` when the endpoint is created. + diff --git a/docs/modules/ROOT/pages/reference/extensions/azure-eventhubs.adoc b/docs/modules/ROOT/pages/reference/extensions/azure-eventhubs.adoc index 52b1d90fad6..ad0746e1dc9 100644 --- a/docs/modules/ROOT/pages/reference/extensions/azure-eventhubs.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/azure-eventhubs.adoc @@ -44,23 +44,6 @@ ifeval::[{doc-show-user-guide-link} == true] Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. endif::[] -[id="extensions-azure-eventhubs-usage"] -== Usage -[id="extensions-azure-eventhubs-usage-micrometer-metrics-support"] -=== Micrometer metrics support - -If you wish to enable the collection of Micrometer metrics for the Reactor Netty transports, then you should declare a dependency on `quarkus-micrometer` to ensure -that they are available via the Quarkus metrics HTTP endpoint. - -[source,xml] ----- -<dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-micrometer</artifactId> -</dependency> ----- - - [id="extensions-azure-eventhubs-ssl-in-native-mode"] == SSL in native mode diff --git a/docs/modules/ROOT/pages/reference/extensions/azure-storage-blob.adoc b/docs/modules/ROOT/pages/reference/extensions/azure-storage-blob.adoc index 382dd0439de..ca586533ca9 100644 --- a/docs/modules/ROOT/pages/reference/extensions/azure-storage-blob.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/azure-storage-blob.adoc @@ -44,23 +44,6 @@ ifeval::[{doc-show-user-guide-link} == true] Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. endif::[] -[id="extensions-azure-storage-blob-usage"] -== Usage -[id="extensions-azure-storage-blob-usage-micrometer-metrics-support"] -=== Micrometer metrics support - -If you wish to enable the collection of Micrometer metrics for the Reactor Netty transports, then you should declare a dependency on `quarkus-micrometer` to ensure -that they are available via the Quarkus metrics HTTP endpoint. - -[source,xml] ----- -<dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-micrometer</artifactId> -</dependency> ----- - - [id="extensions-azure-storage-blob-ssl-in-native-mode"] == SSL in native mode diff --git a/docs/modules/ROOT/pages/reference/extensions/azure-storage-datalake.adoc b/docs/modules/ROOT/pages/reference/extensions/azure-storage-datalake.adoc index 6ed0f2e3c8f..e5b2233d06e 100644 --- a/docs/modules/ROOT/pages/reference/extensions/azure-storage-datalake.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/azure-storage-datalake.adoc @@ -44,23 +44,6 @@ ifeval::[{doc-show-user-guide-link} == true] Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. endif::[] -[id="extensions-azure-storage-datalake-usage"] -== Usage -[id="extensions-azure-storage-datalake-usage-micrometer-metrics-support"] -=== Micrometer metrics support - -If you wish to enable the collection of Micrometer metrics for the Reactor Netty transports, then you should declare a dependency on `quarkus-micrometer` to ensure -that they are available via the Quarkus metrics HTTP endpoint. - -[source,xml] ----- -<dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-micrometer</artifactId> -</dependency> ----- - - [id="extensions-azure-storage-datalake-ssl-in-native-mode"] == SSL in native mode diff --git a/docs/modules/ROOT/pages/reference/extensions/azure-storage-queue.adoc b/docs/modules/ROOT/pages/reference/extensions/azure-storage-queue.adoc index f6eef7efe1a..610944344cb 100644 --- a/docs/modules/ROOT/pages/reference/extensions/azure-storage-queue.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/azure-storage-queue.adoc @@ -44,23 +44,6 @@ ifeval::[{doc-show-user-guide-link} == true] Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. endif::[] -[id="extensions-azure-storage-queue-usage"] -== Usage -[id="extensions-azure-storage-queue-usage-micrometer-metrics-support"] -=== Micrometer metrics support - -If you wish to enable the collection of Micrometer metrics for the Reactor Netty transports, then you should declare a dependency on `quarkus-micrometer` to ensure -that they are available via the Quarkus metrics HTTP endpoint. - -[source,xml] ----- -<dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-micrometer</artifactId> -</dependency> ----- - - [id="extensions-azure-storage-queue-ssl-in-native-mode"] == SSL in native mode diff --git a/docs/modules/ROOT/pages/reference/extensions/bindy.adoc b/docs/modules/ROOT/pages/reference/extensions/bindy.adoc index ddf341318b7..e86e63068a1 100644 --- a/docs/modules/ROOT/pages/reference/extensions/bindy.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/bindy.adoc @@ -50,26 +50,24 @@ endif::[] [id="extensions-bindy-camel-quarkus-limitations"] == Camel Quarkus limitations -When using camel-quarkus-bindy in native mode, only the build machine's locale is supported. +In native mode, only the locales included in the native image are available. By default, this is only the build machine's locale. -For instance, on build machines with French locale, the code below: +For instance, the code below: [source,java] ---- - BindyDataFormat dataFormat = new BindyDataFormat(); dataFormat.setLocale("ar"); ---- -formats numbers the arabic way in JVM mode as expected. However, it formats numbers the French way in native mode. - -Without further tuning, the build machine's default locale would be used. Another locale can be specified with -the `quarkus.default-locale` configuration property. +formats numbers the Arabic way in JVM mode as expected. However, in native mode it falls back to the build machine's locale unless the `ar` locale is included in the native image. -For example, to make the above example work, the default locale could be set as follows. +Additional locales can be included with the `quarkus.locales` configuration property. For example: [source,properties] ---- -quarkus.default-locale=ar-MA +quarkus.locales=ar-MA ---- +See the xref:user-guide/native-mode.adoc#locale[Locale] section of the native mode guide for more details. + diff --git a/docs/modules/ROOT/pages/reference/extensions/controlbus.adoc b/docs/modules/ROOT/pages/reference/extensions/controlbus.adoc index 2165d9edc62..41e999030d0 100644 --- a/docs/modules/ROOT/pages/reference/extensions/controlbus.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/controlbus.adoc @@ -116,7 +116,7 @@ quarkus.camel.native.reflection.include-patterns = org.apache.camel.spi.RouteCon === Statistics ifeval::[{doc-show-advanced-features} == true] -The `stats` action is not available in native mode as JMX is not supported on GraalVM. Therefore, attempting to build a native image with the `camel-quarkus-management` extension on the classpath will result in a build failure. +The `stats` action requires JMX, which is provided by the xref:reference/extensions/management.adoc[Management] extension. JMX support in native mode is experimental, so some statistics may not be available. endif::[] ifeval::[{doc-show-extra-content} == true] diff --git a/docs/modules/ROOT/pages/reference/extensions/couchdb.adoc b/docs/modules/ROOT/pages/reference/extensions/couchdb.adoc index 48b644ad18f..3d0e5ac10b1 100644 --- a/docs/modules/ROOT/pages/reference/extensions/couchdb.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/couchdb.adoc @@ -44,9 +44,3 @@ Or add the coordinates to your existing project: ifeval::[{doc-show-user-guide-link} == true] Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. endif::[] - -[id="extensions-couchdb-camel-quarkus-limitations"] -== Camel Quarkus limitations - -Only Producer mode is supported on Camel Quarkus at this stage. - diff --git a/docs/modules/ROOT/pages/reference/extensions/crypto.adoc b/docs/modules/ROOT/pages/reference/extensions/crypto.adoc index a545f490a23..2b747fdeba1 100644 --- a/docs/modules/ROOT/pages/reference/extensions/crypto.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/crypto.adoc @@ -47,13 +47,6 @@ endif::[] [id="extensions-crypto-usage"] == Usage -[id="extensions-crypto-usage-security-provider"] -=== Security Provider - -This extension requires a BouncyCastle security provider to be https://quarkus.io/guides/security-customization#registering-security-providers[registered] and also utilizes the quarkus security extension. - -NOTE: If no BouncyCastle provider is registered via the `quarkus.security.security-providers` configuration property, then a default `BC` provider is registered automatically. - [id="extensions-crypto-usage-fips"] === FIPS diff --git a/docs/modules/ROOT/pages/reference/extensions/debezium-mysql.adoc b/docs/modules/ROOT/pages/reference/extensions/debezium-mysql.adoc index 017b3a50dbb..099f8d7c491 100644 --- a/docs/modules/ROOT/pages/reference/extensions/debezium-mysql.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/debezium-mysql.adoc @@ -73,6 +73,7 @@ While you can use any of the available Kafka offset stores in JVM mode, only the in native mode: * `org.apache.kafka.connect.storage.FileOffsetBackingStore` +* `org.apache.kafka.connect.storage.KafkaOffsetBackingStore` * `org.apache.kafka.connect.storage.MemoryOffsetBackingStore` Please file an https://github.com/apache/camel-quarkus/issues/new[issue] if you are missing some specific offset store diff --git a/docs/modules/ROOT/pages/reference/extensions/debezium-postgres.adoc b/docs/modules/ROOT/pages/reference/extensions/debezium-postgres.adoc index 14a3e06a3d9..d8d1d148581 100644 --- a/docs/modules/ROOT/pages/reference/extensions/debezium-postgres.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/debezium-postgres.adoc @@ -52,6 +52,7 @@ While you can use any of the available Kafka offset stores in JVM mode, only the in native mode: * `org.apache.kafka.connect.storage.FileOffsetBackingStore` +* `org.apache.kafka.connect.storage.KafkaOffsetBackingStore` * `org.apache.kafka.connect.storage.MemoryOffsetBackingStore` Please file an https://github.com/apache/camel-quarkus/issues/new[issue] if you are missing some specific offset store diff --git a/docs/modules/ROOT/pages/reference/extensions/debezium-sqlserver.adoc b/docs/modules/ROOT/pages/reference/extensions/debezium-sqlserver.adoc index 0a387bed0a1..71ef8bd5c32 100644 --- a/docs/modules/ROOT/pages/reference/extensions/debezium-sqlserver.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/debezium-sqlserver.adoc @@ -60,6 +60,7 @@ While you can use any of the available Kafka offset stores in JVM mode, only the in native mode: * `org.apache.kafka.connect.storage.FileOffsetBackingStore` +* `org.apache.kafka.connect.storage.KafkaOffsetBackingStore` * `org.apache.kafka.connect.storage.MemoryOffsetBackingStore` Please file an https://github.com/apache/camel-quarkus/issues/new[issue] if you are missing some specific offset store diff --git a/docs/modules/ROOT/pages/reference/extensions/git.adoc b/docs/modules/ROOT/pages/reference/extensions/git.adoc index cde8772b5db..cc221943171 100644 --- a/docs/modules/ROOT/pages/reference/extensions/git.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/git.adoc @@ -43,9 +43,3 @@ Or add the coordinates to your existing project: ifeval::[{doc-show-user-guide-link} == true] Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. endif::[] - -[id="extensions-git-additional-camel-quarkus-configuration"] -== Additional Camel Quarkus configuration - -If you plan to run your application in native mode and the remote Git repositories it will access require SSL, you will need to set `quarkus.ssl.native=true` in your `application.properties`. See https://quarkus.io/guides/native-and-ssl[Quarkus native and SSL guide] for more details. - diff --git a/docs/modules/ROOT/pages/reference/extensions/google-pubsub.adoc b/docs/modules/ROOT/pages/reference/extensions/google-pubsub.adoc index bbca5811ea0..3d56a91844c 100644 --- a/docs/modules/ROOT/pages/reference/extensions/google-pubsub.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/google-pubsub.adoc @@ -50,7 +50,7 @@ endif::[] By default, the Camel PubSub component uses JDK object serialization via `ObjectOutputStream` whenever the message body is anything other than `String` or `byte[]`. -Since such serialization is not yet supported by GraalVM, this extension provides a custom Jackson based serializer to serialize complex message payloads as JSON. +This extension replaces it with a custom Jackson based serializer, which serializes complex message payloads as JSON. This applies in both JVM and native mode. If your payload contains binary data, then you will need to handle that by creating a custom Jackson Serializer / Deserializer. Refer to the https://quarkus.io/guides/writing-extensions#customizing-jackson[Quarkus Jackson guide] for information on how to do this. diff --git a/docs/modules/ROOT/pages/reference/extensions/groovy.adoc b/docs/modules/ROOT/pages/reference/extensions/groovy.adoc index b0dfe0d9a22..450d890dd99 100644 --- a/docs/modules/ROOT/pages/reference/extensions/groovy.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/groovy.adoc @@ -53,11 +53,6 @@ endif::[] [id="extensions-groovy-limitations-native-mode-limitations"] === Native mode limitations -[IMPORTANT] -==== -Due to an issue in GraalVM / Mandrel 23.1.x, you *must* build your native application with the https://quarkus.io/guides/all-config#quarkus-core_quarkus-native-report-errors-at-runtime[`--report-unsupported-elements-at-runtime`] option. You can do this by adding the following configuration to `application.properties`. -==== - Compilation of Groovy expressions is made with static compilation enabled. Which means that the types used in your expressions must be known at compile time. Please refer to the https://docs.groovy-lang.org/latest/html/documentation/core-semantics.html#static-type-checking[Groovy documentation for more details]. diff --git a/docs/modules/ROOT/pages/reference/extensions/jfr.adoc b/docs/modules/ROOT/pages/reference/extensions/jfr.adoc index 77df51df22f..9bc946502da 100644 --- a/docs/modules/ROOT/pages/reference/extensions/jfr.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/jfr.adoc @@ -62,14 +62,14 @@ In JVM mode the application runnable JAR can be executed as follows. [source,shell] ---- -java -XX:+FlightRecorder -XX:StartFlightRecording=filename=recording.jfr -jar quarkus-run.jar +java -XX:StartFlightRecording=filename=recording.jfr -jar quarkus-run.jar ---- In native mode, the native executable can be executed as follows. [source,shell] ---- -./my-application-runner -XX:+FlightRecorder -XX:StartFlightRecording=filename=recording.jfr +./my-application-runner -XX:StartFlightRecording=filename=recording.jfr ---- diff --git a/docs/modules/ROOT/pages/reference/extensions/minio.adoc b/docs/modules/ROOT/pages/reference/extensions/minio.adoc index 391d71f909a..d7226c3a085 100644 --- a/docs/modules/ROOT/pages/reference/extensions/minio.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/minio.adoc @@ -47,11 +47,6 @@ endif::[] [id="extensions-minio-additional-camel-quarkus-configuration"] == Additional Camel Quarkus configuration -Depending on Minio configuration, this extension may require SSL encryption on its connections. In such cases, you will need -to add `quarkus.ssl.native=true` to your `application.properties`. -See also https://quarkus.io/guides/native-and-ssl[Quarkus native SSL guide] and xref:user-guide/native-mode.adoc[Native mode] -section of Camel Quarkus user guide. - There are two different configuration approaches: * Minio client can be defined via quarkus properties leveraging the Quarkiverse Minio (see https://docs.quarkiverse.io/quarkus-minio/dev/index.html#_configuration_reference[documentation]). diff --git a/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc b/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc index 209d7360b60..43869c9ffca 100644 --- a/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc @@ -49,7 +49,7 @@ endif::[] [id="extensions-yaml-dsl-usage-native-mode"] === Native mode -The following constructs when defined within Camel YAML DSL markup, require you to register classes for reflection. Refer to the xref:user-guide/native-mode.adoc#reflection[Native mode] guide for details. +Some constructs defined within Camel YAML DSL markup require classes to be registered for reflection. Refer to the xref:user-guide/native-mode.adoc#reflection[Native mode] guide for details. [id="extensions-yaml-dsl-usage-bean-definitions"] ==== Bean definitions @@ -83,81 +83,6 @@ public class GreetingBean { [id="extensions-yaml-dsl-usage-exception-handling"] ==== Exception handling -Camel provides various methods of handling exceptions. Some of these require that any exception classes referenced in their DSL definitions are registered for reflection. - -`*onException*` - -[source,yaml] ----- -- onException: - handled: - constant: "true" - exception: - - "org.acme.MyHandledException" - steps: - - transform: - constant: "Sorry something went wrong" ----- - -[source,java] ----- -@RegisterForReflection -public class MyHandledException { -} ----- - -`*throwException*` - -[source,yaml] ----- -- route: - id: "my-yaml-route" - from: - uri: "direct:start" - steps: - - choice: - when: - - simple: "${body} == 'bad value'" - steps: - - throwException: - exceptionType: "org.acme.ForcedException" - message: "Forced exception" - otherwise: - steps: - - to: "log:end" ----- - -[source,java] ----- -@RegisterForReflection -public class ForcedException { -} ----- - -`*doCatch*` - -[source,yaml] ----- -- route: - id: "my-yaml-route2" - from: - uri: "direct:tryCatch" - steps: - - doTry: - steps: - - to: "direct:readFile" - doCatch: - - exception: - - "java.io.FileNotFoundException" - steps: - - transform: - constant: "do-catch caught an exception" ----- - -[source,java] ----- -@RegisterForReflection(targets = FileNotFoundException.class) -public class MyClass { -} ----- +Exception classes referenced by `onException`, `doCatch` and `throwException` in YAML routes are detected at build time and registered for reflection automatically. +You only need to register exception classes for reflection yourself if they are referenced in a way that cannot be detected at build time. diff --git a/docs/modules/ROOT/pages/user-guide/native-mode.adoc b/docs/modules/ROOT/pages/user-guide/native-mode.adoc index 2bda3852b48..2f539328de5 100644 --- a/docs/modules/ROOT/pages/user-guide/native-mode.adoc +++ b/docs/modules/ROOT/pages/user-guide/native-mode.adoc @@ -59,9 +59,9 @@ Please refer to https://quarkus.io/guides/building-native-image#quarkus-core_qua [[using-onexception-clause-in-native-mode]] == Using the onException clause in native mode -When using xref:manual::exception-clause.adoc[Camel `onException` handling] in native mode, it is the application developers responsibility to register the exception classes for reflection. +Exception classes referenced by xref:manual::exception-clause.adoc[`onException`], `doCatch` and `throwException` in Java, XML and YAML routes are detected at build time and registered for reflection automatically. -For instance, with an exception handler like this +For instance, with an exception handler like this, `MyException` does not need any manual registration: [source,java] ---- @@ -69,7 +69,8 @@ onException(MyException.class).handled(true); from("direct:route-that-could-produce-my-exception").throwException(new MyException()); ---- -the class `MyException` should be registered for reflection, see more in xref:user-guide/native-mode.adoc#reflection[Registering classes for reflection]. +You only need to register exception classes yourself if they are referenced in a way that cannot be detected at build time. +See xref:user-guide/native-mode.adoc#reflection[Registering classes for reflection] for more details. [[reflection]] == Registering classes for reflection diff --git a/extensions-core/yaml-dsl/runtime/src/main/doc/usage.adoc b/extensions-core/yaml-dsl/runtime/src/main/doc/usage.adoc index 15a03ae8f34..6c8e34f5870 100644 --- a/extensions-core/yaml-dsl/runtime/src/main/doc/usage.adoc +++ b/extensions-core/yaml-dsl/runtime/src/main/doc/usage.adoc @@ -1,6 +1,6 @@ === Native mode -The following constructs when defined within Camel YAML DSL markup, require you to register classes for reflection. Refer to the xref:user-guide/native-mode.adoc#reflection[Native mode] guide for details. +Some constructs defined within Camel YAML DSL markup require classes to be registered for reflection. Refer to the xref:user-guide/native-mode.adoc#reflection[Native mode] guide for details. ==== Bean definitions @@ -32,80 +32,5 @@ public class GreetingBean { ==== Exception handling -Camel provides various methods of handling exceptions. Some of these require that any exception classes referenced in their DSL definitions are registered for reflection. - -`*onException*` - -[source,yaml] ----- -- onException: - handled: - constant: "true" - exception: - - "org.acme.MyHandledException" - steps: - - transform: - constant: "Sorry something went wrong" ----- - -[source,java] ----- -@RegisterForReflection -public class MyHandledException { -} ----- - -`*throwException*` - -[source,yaml] ----- -- route: - id: "my-yaml-route" - from: - uri: "direct:start" - steps: - - choice: - when: - - simple: "${body} == 'bad value'" - steps: - - throwException: - exceptionType: "org.acme.ForcedException" - message: "Forced exception" - otherwise: - steps: - - to: "log:end" ----- - -[source,java] ----- -@RegisterForReflection -public class ForcedException { -} ----- - -`*doCatch*` - -[source,yaml] ----- -- route: - id: "my-yaml-route2" - from: - uri: "direct:tryCatch" - steps: - - doTry: - steps: - - to: "direct:readFile" - doCatch: - - exception: - - "java.io.FileNotFoundException" - steps: - - transform: - constant: "do-catch caught an exception" ----- - -[source,java] ----- -@RegisterForReflection(targets = FileNotFoundException.class) -public class MyClass { -} ----- +Exception classes referenced by `onException`, `doCatch` and `throwException` in YAML routes are detected at build time and registered for reflection automatically. +You only need to register exception classes for reflection yourself if they are referenced in a way that cannot be detected at build time. diff --git a/extensions/a2a/runtime/src/main/doc/limitations.adoc b/extensions/a2a/runtime/src/main/doc/limitations.adoc index b50c03a9f89..463fcfdde65 100644 --- a/extensions/a2a/runtime/src/main/doc/limitations.adoc +++ b/extensions/a2a/runtime/src/main/doc/limitations.adoc @@ -6,3 +6,6 @@ Only the `JSONRPC` binding works with the default Quarkus HTTP server (Vert.x / The `HTTP+JSON` binding uses A2A custom-method paths that contain colons, such as `/message:send`. Vert.x Web does not support colon characters in URI path segments, causing these routes to fail. +The A2A component uses `HTTP+JSON` by default, so you must set `protocolBinding=JSONRPC` on your `a2a` endpoints. +Explicitly configuring the `HTTP+JSON` (or `REST`) binding fails with an `IllegalArgumentException` when the endpoint is created. + diff --git a/extensions/azure-eventhubs/runtime/src/main/doc/usage.adoc b/extensions/azure-eventhubs/runtime/src/main/doc/usage.adoc deleted file mode 100644 index d36b6eb2751..00000000000 --- a/extensions/azure-eventhubs/runtime/src/main/doc/usage.adoc +++ /dev/null @@ -1,12 +0,0 @@ -=== Micrometer metrics support - -If you wish to enable the collection of Micrometer metrics for the Reactor Netty transports, then you should declare a dependency on `quarkus-micrometer` to ensure -that they are available via the Quarkus metrics HTTP endpoint. - -[source,xml] ----- -<dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-micrometer</artifactId> -</dependency> ----- diff --git a/extensions/azure-storage-blob/runtime/src/main/doc/usage.adoc b/extensions/azure-storage-blob/runtime/src/main/doc/usage.adoc deleted file mode 100644 index d36b6eb2751..00000000000 --- a/extensions/azure-storage-blob/runtime/src/main/doc/usage.adoc +++ /dev/null @@ -1,12 +0,0 @@ -=== Micrometer metrics support - -If you wish to enable the collection of Micrometer metrics for the Reactor Netty transports, then you should declare a dependency on `quarkus-micrometer` to ensure -that they are available via the Quarkus metrics HTTP endpoint. - -[source,xml] ----- -<dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-micrometer</artifactId> -</dependency> ----- diff --git a/extensions/azure-storage-datalake/runtime/src/main/doc/usage.adoc b/extensions/azure-storage-datalake/runtime/src/main/doc/usage.adoc deleted file mode 100644 index d36b6eb2751..00000000000 --- a/extensions/azure-storage-datalake/runtime/src/main/doc/usage.adoc +++ /dev/null @@ -1,12 +0,0 @@ -=== Micrometer metrics support - -If you wish to enable the collection of Micrometer metrics for the Reactor Netty transports, then you should declare a dependency on `quarkus-micrometer` to ensure -that they are available via the Quarkus metrics HTTP endpoint. - -[source,xml] ----- -<dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-micrometer</artifactId> -</dependency> ----- diff --git a/extensions/azure-storage-queue/runtime/src/main/doc/usage.adoc b/extensions/azure-storage-queue/runtime/src/main/doc/usage.adoc deleted file mode 100644 index d36b6eb2751..00000000000 --- a/extensions/azure-storage-queue/runtime/src/main/doc/usage.adoc +++ /dev/null @@ -1,12 +0,0 @@ -=== Micrometer metrics support - -If you wish to enable the collection of Micrometer metrics for the Reactor Netty transports, then you should declare a dependency on `quarkus-micrometer` to ensure -that they are available via the Quarkus metrics HTTP endpoint. - -[source,xml] ----- -<dependency> - <groupId>io.quarkus</groupId> - <artifactId>quarkus-micrometer</artifactId> -</dependency> ----- diff --git a/extensions/bindy/runtime/src/main/doc/limitations.adoc b/extensions/bindy/runtime/src/main/doc/limitations.adoc index a3bb1626233..ec7cd8cd45c 100644 --- a/extensions/bindy/runtime/src/main/doc/limitations.adoc +++ b/extensions/bindy/runtime/src/main/doc/limitations.adoc @@ -1,22 +1,20 @@ -When using camel-quarkus-bindy in native mode, only the build machine's locale is supported. +In native mode, only the locales included in the native image are available. By default, this is only the build machine's locale. -For instance, on build machines with French locale, the code below: +For instance, the code below: [source,java] ---- - BindyDataFormat dataFormat = new BindyDataFormat(); dataFormat.setLocale("ar"); ---- -formats numbers the arabic way in JVM mode as expected. However, it formats numbers the French way in native mode. - -Without further tuning, the build machine's default locale would be used. Another locale can be specified with -the `quarkus.default-locale` configuration property. +formats numbers the Arabic way in JVM mode as expected. However, in native mode it falls back to the build machine's locale unless the `ar` locale is included in the native image. -For example, to make the above example work, the default locale could be set as follows. +Additional locales can be included with the `quarkus.locales` configuration property. For example: [source,properties] ---- -quarkus.default-locale=ar-MA +quarkus.locales=ar-MA ---- + +See the xref:user-guide/native-mode.adoc#locale[Locale] section of the native mode guide for more details. diff --git a/extensions/controlbus/runtime/src/main/doc/limitations.adoc b/extensions/controlbus/runtime/src/main/doc/limitations.adoc index bcdd9a63208..f186c638ef3 100644 --- a/extensions/controlbus/runtime/src/main/doc/limitations.adoc +++ b/extensions/controlbus/runtime/src/main/doc/limitations.adoc @@ -1,7 +1,7 @@ === Statistics ifeval::[{doc-show-advanced-features} == true] -The `stats` action is not available in native mode as JMX is not supported on GraalVM. Therefore, attempting to build a native image with the `camel-quarkus-management` extension on the classpath will result in a build failure. +The `stats` action requires JMX, which is provided by the xref:reference/extensions/management.adoc[Management] extension. JMX support in native mode is experimental, so some statistics may not be available. endif::[] ifeval::[{doc-show-extra-content} == true] diff --git a/extensions/couchdb/runtime/src/main/doc/limitations.adoc b/extensions/couchdb/runtime/src/main/doc/limitations.adoc deleted file mode 100644 index 2f4aaa92519..00000000000 --- a/extensions/couchdb/runtime/src/main/doc/limitations.adoc +++ /dev/null @@ -1 +0,0 @@ -Only Producer mode is supported on Camel Quarkus at this stage. \ No newline at end of file diff --git a/extensions/crypto/runtime/src/main/doc/usage.adoc b/extensions/crypto/runtime/src/main/doc/usage.adoc index d792f721515..ee55c163381 100644 --- a/extensions/crypto/runtime/src/main/doc/usage.adoc +++ b/extensions/crypto/runtime/src/main/doc/usage.adoc @@ -1,9 +1,3 @@ -=== Security Provider - -This extension requires a BouncyCastle security provider to be https://quarkus.io/guides/security-customization#registering-security-providers[registered] and also utilizes the quarkus security extension. - -NOTE: If no BouncyCastle provider is registered via the `quarkus.security.security-providers` configuration property, then a default `BC` provider is registered automatically. - === FIPS When running the `crypto` extension on a FIPS enabled system, a FIPS-compliant Java Security Provider (such as `BCFIPS`) has to be used. diff --git a/extensions/debezium-mysql/runtime/src/main/doc/limitations.adoc b/extensions/debezium-mysql/runtime/src/main/doc/limitations.adoc index 0790f2e63d0..90c7cb907fe 100644 --- a/extensions/debezium-mysql/runtime/src/main/doc/limitations.adoc +++ b/extensions/debezium-mysql/runtime/src/main/doc/limitations.adoc @@ -2,6 +2,7 @@ While you can use any of the available Kafka offset stores in JVM mode, only the in native mode: * `org.apache.kafka.connect.storage.FileOffsetBackingStore` +* `org.apache.kafka.connect.storage.KafkaOffsetBackingStore` * `org.apache.kafka.connect.storage.MemoryOffsetBackingStore` Please file an https://github.com/apache/camel-quarkus/issues/new[issue] if you are missing some specific offset store diff --git a/extensions/debezium-postgres/runtime/src/main/doc/limitations.adoc b/extensions/debezium-postgres/runtime/src/main/doc/limitations.adoc index 0790f2e63d0..90c7cb907fe 100644 --- a/extensions/debezium-postgres/runtime/src/main/doc/limitations.adoc +++ b/extensions/debezium-postgres/runtime/src/main/doc/limitations.adoc @@ -2,6 +2,7 @@ While you can use any of the available Kafka offset stores in JVM mode, only the in native mode: * `org.apache.kafka.connect.storage.FileOffsetBackingStore` +* `org.apache.kafka.connect.storage.KafkaOffsetBackingStore` * `org.apache.kafka.connect.storage.MemoryOffsetBackingStore` Please file an https://github.com/apache/camel-quarkus/issues/new[issue] if you are missing some specific offset store diff --git a/extensions/debezium-sqlserver/runtime/src/main/doc/limitations.adoc b/extensions/debezium-sqlserver/runtime/src/main/doc/limitations.adoc index 0790f2e63d0..90c7cb907fe 100644 --- a/extensions/debezium-sqlserver/runtime/src/main/doc/limitations.adoc +++ b/extensions/debezium-sqlserver/runtime/src/main/doc/limitations.adoc @@ -2,6 +2,7 @@ While you can use any of the available Kafka offset stores in JVM mode, only the in native mode: * `org.apache.kafka.connect.storage.FileOffsetBackingStore` +* `org.apache.kafka.connect.storage.KafkaOffsetBackingStore` * `org.apache.kafka.connect.storage.MemoryOffsetBackingStore` Please file an https://github.com/apache/camel-quarkus/issues/new[issue] if you are missing some specific offset store diff --git a/extensions/git/runtime/src/main/doc/configuration.adoc b/extensions/git/runtime/src/main/doc/configuration.adoc deleted file mode 100644 index be8bd9bf451..00000000000 --- a/extensions/git/runtime/src/main/doc/configuration.adoc +++ /dev/null @@ -1 +0,0 @@ -If you plan to run your application in native mode and the remote Git repositories it will access require SSL, you will need to set `quarkus.ssl.native=true` in your `application.properties`. See https://quarkus.io/guides/native-and-ssl[Quarkus native and SSL guide] for more details. \ No newline at end of file diff --git a/extensions/google-pubsub/runtime/src/main/doc/limitations.adoc b/extensions/google-pubsub/runtime/src/main/doc/limitations.adoc index 41fea7fff1c..cde7a632d97 100644 --- a/extensions/google-pubsub/runtime/src/main/doc/limitations.adoc +++ b/extensions/google-pubsub/runtime/src/main/doc/limitations.adoc @@ -1,6 +1,6 @@ By default, the Camel PubSub component uses JDK object serialization via `ObjectOutputStream` whenever the message body is anything other than `String` or `byte[]`. -Since such serialization is not yet supported by GraalVM, this extension provides a custom Jackson based serializer to serialize complex message payloads as JSON. +This extension replaces it with a custom Jackson based serializer, which serializes complex message payloads as JSON. This applies in both JVM and native mode. If your payload contains binary data, then you will need to handle that by creating a custom Jackson Serializer / Deserializer. Refer to the https://quarkus.io/guides/writing-extensions#customizing-jackson[Quarkus Jackson guide] for information on how to do this. diff --git a/extensions/groovy/runtime/src/main/doc/limitations.adoc b/extensions/groovy/runtime/src/main/doc/limitations.adoc index e5d0cf3302c..352818b41ce 100644 --- a/extensions/groovy/runtime/src/main/doc/limitations.adoc +++ b/extensions/groovy/runtime/src/main/doc/limitations.adoc @@ -1,10 +1,5 @@ === Native mode limitations -[IMPORTANT] -==== -Due to an issue in GraalVM / Mandrel 23.1.x, you *must* build your native application with the https://quarkus.io/guides/all-config#quarkus-core_quarkus-native-report-errors-at-runtime[`--report-unsupported-elements-at-runtime`] option. You can do this by adding the following configuration to `application.properties`. -==== - Compilation of Groovy expressions is made with static compilation enabled. Which means that the types used in your expressions must be known at compile time. Please refer to the https://docs.groovy-lang.org/latest/html/documentation/core-semantics.html#static-type-checking[Groovy documentation for more details]. diff --git a/extensions/jfr/runtime/src/main/doc/usage.adoc b/extensions/jfr/runtime/src/main/doc/usage.adoc index 3459c2178c1..dbe491aaf2c 100644 --- a/extensions/jfr/runtime/src/main/doc/usage.adoc +++ b/extensions/jfr/runtime/src/main/doc/usage.adoc @@ -13,12 +13,12 @@ In JVM mode the application runnable JAR can be executed as follows. [source,shell] ---- -java -XX:+FlightRecorder -XX:StartFlightRecording=filename=recording.jfr -jar quarkus-run.jar +java -XX:StartFlightRecording=filename=recording.jfr -jar quarkus-run.jar ---- In native mode, the native executable can be executed as follows. [source,shell] ---- -./my-application-runner -XX:+FlightRecorder -XX:StartFlightRecording=filename=recording.jfr +./my-application-runner -XX:StartFlightRecording=filename=recording.jfr ---- diff --git a/extensions/minio/runtime/src/main/doc/configuration.adoc b/extensions/minio/runtime/src/main/doc/configuration.adoc index 812f748ba55..5770c1966d9 100644 --- a/extensions/minio/runtime/src/main/doc/configuration.adoc +++ b/extensions/minio/runtime/src/main/doc/configuration.adoc @@ -1,8 +1,3 @@ -Depending on Minio configuration, this extension may require SSL encryption on its connections. In such cases, you will need -to add `quarkus.ssl.native=true` to your `application.properties`. -See also https://quarkus.io/guides/native-and-ssl[Quarkus native SSL guide] and xref:user-guide/native-mode.adoc[Native mode] -section of Camel Quarkus user guide. - There are two different configuration approaches: * Minio client can be defined via quarkus properties leveraging the Quarkiverse Minio (see https://docs.quarkiverse.io/quarkus-minio/dev/index.html#_configuration_reference[documentation]).
