This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 35d029d4d195e4a46b891246f44a4c7c1cda7a4f Author: James Netherton <[email protected]> AuthorDate: Fri Nov 20 13:48:09 2026 +0000 Fix broken code snippets and typos in documentation Co-Authored-By: Claude Opus 5.5 <[email protected]> --- .../migration-guide/camel-spring-boot-to-camel-quarkus.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/core.adoc | 4 ++-- docs/modules/ROOT/pages/reference/extensions/cxf-soap.adoc | 3 ++- docs/modules/ROOT/pages/reference/extensions/freemarker.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/grpc.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/gson.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/hazelcast.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/jackson.adoc | 6 +++--- docs/modules/ROOT/pages/reference/extensions/jasypt.adoc | 6 +++--- docs/modules/ROOT/pages/reference/extensions/jta.adoc | 8 ++++---- docs/modules/ROOT/pages/reference/extensions/kubernetes.adoc | 4 ++-- docs/modules/ROOT/pages/reference/extensions/ldap.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/minio.adoc | 2 +- .../ROOT/pages/reference/extensions/mongodb-gridfs.adoc | 2 +- .../ROOT/pages/reference/extensions/platform-http.adoc | 2 +- .../modules/ROOT/pages/reference/extensions/rest-openapi.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/servlet.adoc | 1 + .../modules/ROOT/pages/reference/extensions/tls-registry.adoc | 2 +- .../ROOT/pages/reference/extensions/vertx-websocket.adoc | 6 +++--- docs/modules/ROOT/pages/reference/extensions/wasm.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/xslt.adoc | 2 +- docs/modules/ROOT/pages/reference/extensions/yaml-io.adoc | 4 ++-- docs/modules/ROOT/pages/user-guide/cdi.adoc | 4 +++- docs/modules/ROOT/pages/user-guide/command-mode.adoc | 3 +-- docs/modules/ROOT/pages/user-guide/configuration.adoc | 4 ++-- docs/modules/ROOT/pages/user-guide/defining-camel-routes.adoc | 10 +++------- docs/modules/ROOT/pages/user-guide/dependency-management.adoc | 4 ++-- docs/modules/ROOT/pages/user-guide/index.adoc | 2 +- docs/modules/ROOT/pages/user-guide/native-mode.adoc | 2 +- docs/modules/ROOT/pages/user-guide/testing.adoc | 2 +- .../ROOT/pages/user-guide/testing/external-services.adoc | 11 +++++------ extensions-core/core/runtime/src/main/doc/configuration.adoc | 4 ++-- extensions-core/yaml-io/runtime/src/main/doc/usage.adoc | 4 ++-- extensions/cxf-soap/runtime/src/main/doc/usage.adoc | 3 ++- extensions/freemarker/runtime/src/main/doc/configuration.adoc | 2 +- extensions/grpc/runtime/src/main/doc/usage.adoc | 2 +- extensions/gson/runtime/src/main/doc/configuration.adoc | 2 +- extensions/hazelcast/runtime/src/main/doc/configuration.adoc | 2 +- extensions/jackson/runtime/src/main/doc/usage.adoc | 6 +++--- extensions/jasypt/runtime/src/main/doc/usage.adoc | 6 +++--- extensions/jta/runtime/src/main/doc/usage.adoc | 8 ++++---- extensions/kubernetes/runtime/src/main/doc/configuration.adoc | 4 ++-- extensions/ldap/runtime/src/main/doc/usage.adoc | 2 +- extensions/minio/runtime/src/main/doc/configuration.adoc | 2 +- .../mongodb-gridfs/runtime/src/main/doc/configuration.adoc | 2 +- extensions/platform-http/runtime/src/main/doc/usage.adoc | 2 +- extensions/rest-openapi/runtime/src/main/doc/usage.adoc | 2 +- extensions/servlet/runtime/src/main/doc/usage.adoc | 1 + extensions/tls-registry/runtime/src/main/doc/usage.adoc | 2 +- extensions/vertx-websocket/runtime/src/main/doc/intro.adoc | 2 +- extensions/vertx-websocket/runtime/src/main/doc/usage.adoc | 4 ++-- extensions/wasm/runtime/src/main/doc/usage.adoc | 2 +- extensions/xslt/runtime/src/main/doc/configuration.adoc | 2 +- 53 files changed, 88 insertions(+), 88 deletions(-) diff --git a/docs/modules/ROOT/pages/migration-guide/camel-spring-boot-to-camel-quarkus.adoc b/docs/modules/ROOT/pages/migration-guide/camel-spring-boot-to-camel-quarkus.adoc index e357cfc6e27..3f8ce56a4b2 100644 --- a/docs/modules/ROOT/pages/migration-guide/camel-spring-boot-to-camel-quarkus.adoc +++ b/docs/modules/ROOT/pages/migration-guide/camel-spring-boot-to-camel-quarkus.adoc @@ -74,7 +74,7 @@ In case, the Camel Spring XML DSL was used, it needs to be migrated. Please see Tests annotated with `@CamelSpringBootTest`, `@CamelSpringTest` and `@SpringBootTest` must use `@QuarkusTest` instead. -In case of tests which extends `CamelSpringBootTestSupport`, it must be replaced by `CamelQuarkusTestsSupport` from `camel-quarkus-junit` dependency (to add to the pom). Note that this solution is working only for JVM mode. +In case of tests which extends `CamelSpringBootTestSupport`, it must be replaced by `CamelQuarkusTestSupport` from `camel-quarkus-junit` dependency (to add to the pom). Note that this solution is working only for JVM mode. As a reminder and in case of specific cases, see xref:user-guide/testing.adoc[Camel Quarkus Testing User guide]. diff --git a/docs/modules/ROOT/pages/reference/extensions/core.adoc b/docs/modules/ROOT/pages/reference/extensions/core.adoc index a9da971a903..d6e1ef8254c 100644 --- a/docs/modules/ROOT/pages/reference/extensions/core.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/core.adoc @@ -117,10 +117,10 @@ When specifying a custom bean via properties in native mode with configuration l For instance, the custom bean definition below involves the use of reflection for bean instantiation and setter invocation: [source,properties] ---- +---- camel.beans.customBeanWithSetterInjection = #class:org.example.PropertiesCustomBeanWithSetterInjection camel.beans.customBeanWithSetterInjection.counter = 123 ---- +---- As such, the class `PropertiesCustomBeanWithSetterInjection` needs to be link:https://quarkus.io/guides/writing-native-applications-tips#registering-for-reflection[registered for reflection], note that field access could be omitted in this case. diff --git a/docs/modules/ROOT/pages/reference/extensions/cxf-soap.adoc b/docs/modules/ROOT/pages/reference/extensions/cxf-soap.adoc index 2fd31b4833c..394e9a2fe90 100644 --- a/docs/modules/ROOT/pages/reference/extensions/cxf-soap.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/cxf-soap.adoc @@ -126,7 +126,7 @@ public interface CalculatorService { } ---- -<1> NOTE: JAX-WS annotations are required. The Simple CXF Frontend is not supported. Complex parameter types require JAXB annotations to work in properly in native mode. +<1> NOTE: JAX-WS annotations are required. The Simple CXF Frontend is not supported. Complex parameter types require JAXB annotations to work properly in native mode. [TIP] ==== @@ -219,6 +219,7 @@ import org.apache.camel.builder.RouteBuilder; import org.apache.cxf.ext.logging.LoggingFeature; import {javaxOrJakartaPackagePrefix}.enterprise.context.ApplicationScoped; import {javaxOrJakartaPackagePrefix}.enterprise.inject.Produces; +import {javaxOrJakartaPackagePrefix}.inject.Inject; import {javaxOrJakartaPackagePrefix}.inject.Named; @ApplicationScoped diff --git a/docs/modules/ROOT/pages/reference/extensions/freemarker.adoc b/docs/modules/ROOT/pages/reference/extensions/freemarker.adoc index 6f4c0858d4d..4fdae9df963 100644 --- a/docs/modules/ROOT/pages/reference/extensions/freemarker.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/freemarker.adoc @@ -91,7 +91,7 @@ public class MyRoutes extends RouteBuilder { @Override public void configure() { from("direct:example") - .to("freemarker:templates/email.ftl?configuration=myFreemarkerConfig") + .to("freemarker:templates/email.ftl?configuration=myFreemarkerConfig"); } } diff --git a/docs/modules/ROOT/pages/reference/extensions/grpc.adoc b/docs/modules/ROOT/pages/reference/extensions/grpc.adoc index 6f518657e0f..01d097b828e 100644 --- a/docs/modules/ROOT/pages/reference/extensions/grpc.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/grpc.adoc @@ -137,7 +137,7 @@ For example, to include SSL / TLS keys and certificates. [source,properties] ---- -quarkus.native.resources.includes = certs/*.pem,certs.*.key +quarkus.native.resources.includes = certs/*.pem,certs/*.key ---- More information about selecting resources for inclusion in the native executable can be found in the xref:user-guide/native-mode.adoc#embedding-resource-in-native-executable[native mode guide]. diff --git a/docs/modules/ROOT/pages/reference/extensions/gson.adoc b/docs/modules/ROOT/pages/reference/extensions/gson.adoc index 8e392e9158c..675a4e63647 100644 --- a/docs/modules/ROOT/pages/reference/extensions/gson.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/gson.adoc @@ -63,7 +63,7 @@ For example when using any of the following: [source,java] ---- -package org.acme.MyPojo; +package org.acme; @RegisterForReflection public class MyPojo { diff --git a/docs/modules/ROOT/pages/reference/extensions/hazelcast.adoc b/docs/modules/ROOT/pages/reference/extensions/hazelcast.adoc index 728b733e005..c0774d33c45 100644 --- a/docs/modules/ROOT/pages/reference/extensions/hazelcast.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/hazelcast.adoc @@ -78,7 +78,7 @@ To use the `HazelcastInstance` bean in the Hazelcast component, you should confi hazelcastComponent.setHazelcastInstance(hazelcastInstance); <2> hazelcastComponent.setHazelcastMode(HazelcastConstants.HAZELCAST_CLIENT_MODE); - return getHazelcastComponent(hazelcastComponent); + return hazelcastComponent; } ---- <1> The `HazelcastInstance` bean instance created by the `quarkus-hazelcast` extension diff --git a/docs/modules/ROOT/pages/reference/extensions/jackson.adoc b/docs/modules/ROOT/pages/reference/extensions/jackson.adoc index d67d1b24552..a26db892bbd 100644 --- a/docs/modules/ROOT/pages/reference/extensions/jackson.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/jackson.adoc @@ -75,7 +75,7 @@ public class Routes extends RouteBuilder { JacksonDataFormat dataFormat = new JacksonDataFormat(); dataFormat.setObjectMapper(mapper); // Use the dataFormat instance in a route definition - from("direct:my-direct").marshal(dataFormat) + from("direct:my-direct").marshal(dataFormat); } } ---- @@ -96,7 +96,7 @@ public class Routes extends RouteBuilder { // Make JacksonDataFormat discover the Quarkus Jackson `ObjectMapper` from the Camel registry dataFormat.setAutoDiscoverObjectMapper(true); // Use the dataFormat instance in a route definition - from("direct:my-direct").marshal(dataFormat) + from("direct:my-direct").marshal(dataFormat); } } ---- @@ -157,7 +157,7 @@ public class Routes extends RouteBuilder { JacksonDataFormat dataFormat = new JacksonDataFormat(); dataFormat.setObjectMapper(mapper); // Use the dataFormat instance in a route definition - from("direct:my-direct").marshal(dataFormat) + from("direct:my-direct").marshal(dataFormat); } } ---- diff --git a/docs/modules/ROOT/pages/reference/extensions/jasypt.adoc b/docs/modules/ROOT/pages/reference/extensions/jasypt.adoc index d5a9878d1f5..c37bf1a0586 100644 --- a/docs/modules/ROOT/pages/reference/extensions/jasypt.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/jasypt.adoc @@ -88,7 +88,7 @@ public class MySecureRoute extends RouteBuilder { } ---- -TIP: You can use the ability to mask security sensitive configuration in Camel by suffixing property values with `.secret`. +TIP: You can use the ability to mask security sensitive configuration in Camel by suffixing property names with `.secret`. You can also disable the startup configuration summary with the configuration `camel.main.autoConfigurationLogSummary = false`. [id="extensions-jasypt-usage-injecting-encrypted-configuration"] @@ -100,7 +100,7 @@ You can use the `@ConfigProperty` annotation to inject encrypted configuration i ---- @ApplicationScoped public class MySecureRoute extends RouteBuilder { - @ConfigInject("my.secret") + @ConfigProperty(name = "my.secret") String mySecret; @Override @@ -138,7 +138,7 @@ import org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig; import org.jasypt.iv.RandomIvGenerator; import org.jasypt.salt.RandomSaltGenerator; -public class JasyptConfigurationCustomizer implements JasyptConfigurationCustomizer { +public class MyJasyptEncryptorCustomizer implements JasyptConfigurationCustomizer { public void customize(EnvironmentStringPBEConfig config) { // Custom algorithms config.setAlgorithm("PBEWithHmacSHA256AndAES_256"); diff --git a/docs/modules/ROOT/pages/reference/extensions/jta.adoc b/docs/modules/ROOT/pages/reference/extensions/jta.adoc index ecf3002c80a..a4401715788 100644 --- a/docs/modules/ROOT/pages/reference/extensions/jta.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/jta.adoc @@ -57,7 +57,7 @@ from("direct:transaction") .transacted() .to("sql:INSERT INTO A TABLE ...?dataSource=#ds1") .to("sql:INSERT INTO A TABLE ...?dataSource=#ds2") - .log("All data committed to DataSources ds1 and ds2") + .log("All data committed to DataSources ds1 and ds2"); ---- You can use a specific transaction policy by referring to its name. @@ -66,14 +66,14 @@ You can use a specific transaction policy by referring to its name. ---- from("direct:transaction") .transacted("PROPAGATION_REQUIRED") - .to("sql:INSERT INTO A TABLE ...?dataSource=#ds1"); + .to("sql:INSERT INTO A TABLE ...?dataSource=#ds1") .to("sql:INSERT INTO A TABLE ...?dataSource=#ds2") - .log("All data committed to DataSources ds1 and ds2") + .log("All data committed to DataSources ds1 and ds2"); ---- Support is provided for the following transaction policies. -[cols="50,.^50] +[cols="50,.^50"] |=== |Policy | Description diff --git a/docs/modules/ROOT/pages/reference/extensions/kubernetes.adoc b/docs/modules/ROOT/pages/reference/extensions/kubernetes.adoc index eb4a96c963b..1d3d4c01301 100644 --- a/docs/modules/ROOT/pages/reference/extensions/kubernetes.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/kubernetes.adoc @@ -122,8 +122,8 @@ from("direct:pods") When using any of the OpenShift specific components: -* `openenshift-build-configs` -* `openenshift-builds` +* `openshift-build-configs` +* `openshift-builds` * `openshift-deploymentconfigs` You must add the following dependency to your application. diff --git a/docs/modules/ROOT/pages/reference/extensions/ldap.adoc b/docs/modules/ROOT/pages/reference/extensions/ldap.adoc index 60c30980d49..451c3115d9b 100644 --- a/docs/modules/ROOT/pages/reference/extensions/ldap.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/ldap.adoc @@ -70,7 +70,7 @@ If you need to specify an option that is not listed above, use the following pro [source,properties] ---- -quarkus.camel.ldap.dr-contexts."your_name".additional-options."not-listed_option_name" +quarkus.camel.ldap.dir-contexts."your_name".additional-options."not-listed_option_name" ---- Here is an example of configuration of a dirContext named `your_context` using SSL. diff --git a/docs/modules/ROOT/pages/reference/extensions/minio.adoc b/docs/modules/ROOT/pages/reference/extensions/minio.adoc index 010b9cc9e8c..4ded4bd8e9f 100644 --- a/docs/modules/ROOT/pages/reference/extensions/minio.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/minio.adoc @@ -59,7 +59,7 @@ Camel will autowire client into the Minio component. This configuration allows definition of only one minio client, therefore it isn't possible to define several different minio endpoints, which run together. * Provide client/clients for camel registry (e.g. CDI producer/bean) and reference them from endpoint. -[source,properties] +[source] ---- minio:foo?minioClient=#minioClient ---- diff --git a/docs/modules/ROOT/pages/reference/extensions/mongodb-gridfs.adoc b/docs/modules/ROOT/pages/reference/extensions/mongodb-gridfs.adoc index a3a2afc629e..24338b73e1f 100644 --- a/docs/modules/ROOT/pages/reference/extensions/mongodb-gridfs.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/mongodb-gridfs.adoc @@ -51,7 +51,7 @@ endif::[] The extension leverages the https://quarkus.io/guides/mongodb[Quarkus MongoDB Client] extension. The Mongo client can be configured via the Quarkus MongoDB Client https://quarkus.io/guides/mongodb#configuration-reference[configuration options]. -The Camel Quarkus MongoDB extension automatically registers a MongoDB client bean named `camelMongoClient`. This can be referenced in the mongodb endpoint URI +This extension automatically registers a MongoDB client bean named `camelMongoClient`. This can be referenced in the mongodb endpoint URI `connectionBean` path parameter. For example: [source,java] diff --git a/docs/modules/ROOT/pages/reference/extensions/platform-http.adoc b/docs/modules/ROOT/pages/reference/extensions/platform-http.adoc index dd766563e81..6136d8383f4 100644 --- a/docs/modules/ROOT/pages/reference/extensions/platform-http.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/platform-http.adoc @@ -86,7 +86,7 @@ Then you can use the Camel REST DSL: ---- rest() .get("/my-get-endpoint") - .to("direct:handleGetRequest"); + .to("direct:handleGetRequest") .post("/my-post-endpoint") .to("direct:handlePostRequest"); diff --git a/docs/modules/ROOT/pages/reference/extensions/rest-openapi.adoc b/docs/modules/ROOT/pages/reference/extensions/rest-openapi.adoc index 6b58ed4dcb9..9ea4389a576 100644 --- a/docs/modules/ROOT/pages/reference/extensions/rest-openapi.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/rest-openapi.adoc @@ -121,7 +121,7 @@ The contract files in `src/main/openapi` need to be added in the classpath, sinc </build> ---- -When running in the native mode, the contract files must be added to the native image via the `quarkus.native.resources.include` configuration property. +When running in the native mode, the contract files must be added to the native image via the `quarkus.native.resources.includes` configuration property. [source,properties] ---- diff --git a/docs/modules/ROOT/pages/reference/extensions/servlet.adoc b/docs/modules/ROOT/pages/reference/extensions/servlet.adoc index fffccf4a343..78b6e7f9681 100644 --- a/docs/modules/ROOT/pages/reference/extensions/servlet.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/servlet.adoc @@ -124,6 +124,7 @@ then you can do this with a custom Servlet class through the `jakarta.servlet.an [source,java] ---- +import jakarta.servlet.annotation.WebInitParam; import jakarta.servlet.annotation.WebServlet; import org.apache.camel.component.servlet.CamelHttpTransportServlet; diff --git a/docs/modules/ROOT/pages/reference/extensions/tls-registry.adoc b/docs/modules/ROOT/pages/reference/extensions/tls-registry.adoc index 03343549ba4..e5d1a398800 100644 --- a/docs/modules/ROOT/pages/reference/extensions/tls-registry.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/tls-registry.adoc @@ -165,7 +165,7 @@ Some `quarkus.tls.*` options have no equivalent in `SSLContextParameters`, becau |Not carried over. Protocol negotiation is handled by the consuming component. |`pqc-enforcement-policy` -|Not carried over. Use `quarkus.tls.<name>.key-exchange-groups`, which is, to constrain the groups Camel offers. +|Not carried over. Use `quarkus.tls.<name>.key-exchange-groups`, which is carried over, to constrain the groups Camel offers. |=== These options continue to apply to Quarkus's own TLS consumers as normal. Only the Camel bridge is affected. diff --git a/docs/modules/ROOT/pages/reference/extensions/vertx-websocket.adoc b/docs/modules/ROOT/pages/reference/extensions/vertx-websocket.adoc index 5c065c47f7c..a3ee1e6b9fe 100644 --- a/docs/modules/ROOT/pages/reference/extensions/vertx-websocket.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/vertx-websocket.adoc @@ -17,7 +17,7 @@ ifeval::[{doc-show-badges} == true] [.badge-key]##JVM since##[.badge-supported]##1.1.0## [.badge-key]##Native since##[.badge-supported]##1.1.0## endif::[] -This extension enables you to create WebSocket endpoints to that act as either a WebSocket server, or as a client to connect an existing WebSocket . +This extension enables you to create WebSocket endpoints that act as either a WebSocket server, or as a client to connect to an existing WebSocket. It is built on top of the Eclipse Vert.x HTTP server provided by the `quarkus-vertx-http` extension. @@ -116,7 +116,7 @@ from("vertx-websocket:/my-websocket-path") .log("Got body: ${body}"); from("direct:sendToWebSocket") - .log("vertx-websocket:/my-websocket-path"); + .to("vertx-websocket:/my-websocket-path"); ---- Or alternatively, you can refer to the full host & port configuration for the Quarkus HTTP server. @@ -124,7 +124,7 @@ Or alternatively, you can refer to the full host & port configuration for the Qu [source,java] ---- from("direct:sendToWebSocket") - .log("vertx-websocket:{{quarkus.http.host}}:{{quarkus.http.port}}/my-websocket-path"); + .to("vertx-websocket:{{quarkus.http.host}}:{{quarkus.http.port}}/my-websocket-path"); ---- When producing messages to an external WebSocket server, then you must always provide the host name and port (if required). diff --git a/docs/modules/ROOT/pages/reference/extensions/wasm.adoc b/docs/modules/ROOT/pages/reference/extensions/wasm.adoc index c6d913c2e3b..6c80f3cd051 100644 --- a/docs/modules/ROOT/pages/reference/extensions/wasm.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/wasm.adoc @@ -53,7 +53,7 @@ endif::[] When Wasm modules are read from the classpath (the default) in native mode, you must ensure that the module(s) are added to the native image. You can do this via a configuration property in `application.properties`. -For example, assuming `.wasm` files are read from a classpath location of `was/modules`. +For example, assuming `.wasm` files are read from a classpath location of `wasm/modules`. [source,properties] ---- diff --git a/docs/modules/ROOT/pages/reference/extensions/xslt.adoc b/docs/modules/ROOT/pages/reference/extensions/xslt.adoc index a5eb49d154c..e299128c60e 100644 --- a/docs/modules/ROOT/pages/reference/extensions/xslt.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/xslt.adoc @@ -67,7 +67,7 @@ Compiling more than one template requires the native build to run on JDK 21.0.8 `<xsl:include>` is supported in native mode when the including stylesheet is listed in `quarkus.camel.xslt.sources` and included stylesheets are classpath-relative. Nested classpath includes are resolved at build time. -`<xsl:messaging>` XSLT elements are supported in JVM mode only right now. +`<xsl:message>` XSLT elements are supported in JVM mode only right now. If `aggregate` DSL is used, `XsltSaxonAggregationStrategy` has to be used such as [source,java] diff --git a/docs/modules/ROOT/pages/reference/extensions/yaml-io.adoc b/docs/modules/ROOT/pages/reference/extensions/yaml-io.adoc index 28aa3caef7c..4ee6daf2f72 100644 --- a/docs/modules/ROOT/pages/reference/extensions/yaml-io.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/yaml-io.adoc @@ -39,9 +39,9 @@ endif::[] [id="extensions-yaml-io-usage"] == Usage -This an auxiliary extension that provides support for Camel route dumping in YAML. +This is an auxiliary extension that provides support for Camel route dumping in YAML. -For example, when the application is configured to dump routes on startup with the following configuration in `application.properties`. +For example, to dump routes in YAML on startup, add the following configuration to `application.properties`: [source,properties] ---- diff --git a/docs/modules/ROOT/pages/user-guide/cdi.adoc b/docs/modules/ROOT/pages/user-guide/cdi.adoc index 95cb9fcf915..424431f566a 100644 --- a/docs/modules/ROOT/pages/user-guide/cdi.adoc +++ b/docs/modules/ROOT/pages/user-guide/cdi.adoc @@ -52,6 +52,7 @@ import jakarta.enterprise.context.ApplicationScoped; import java.util.stream.Collectors; import java.util.List; import org.apache.camel.CamelContext; +import org.apache.camel.Route; @ApplicationScoped public class MyBean { @@ -137,6 +138,7 @@ import org.apache.camel.EndpointInject; import org.apache.camel.FluentProducerTemplate; import org.apache.camel.Produce; import org.apache.camel.ProducerTemplate; +import org.apache.camel.component.direct.DirectEndpoint; @ApplicationScoped class MyBean { @@ -185,7 +187,7 @@ class MyProduceBean { ProduceInterface produceInterface; void doSomething() { - produceInterface.sayHello("Kermit") + produceInterface.sayHello("Kermit"); } } diff --git a/docs/modules/ROOT/pages/user-guide/command-mode.adoc b/docs/modules/ROOT/pages/user-guide/command-mode.adoc index e0baf9183f1..6bacb3ba04c 100644 --- a/docs/modules/ROOT/pages/user-guide/command-mode.adoc +++ b/docs/modules/ROOT/pages/user-guide/command-mode.adoc @@ -33,7 +33,6 @@ The route definition could look like the following: ---- import org.apache.camel.builder.RouteBuilder; -@ApplicationScoped public class CamelRoute extends RouteBuilder { @Override @@ -207,7 +206,7 @@ https://github.com/apache/camel-quarkus/tree/main/integration-tests/main-command Bonus: The integration test module shows a way how to test command line applications. -== Full control over starting Camel by invoking `CamelMainApplication` directly. +== Full control over starting Camel by invoking `CamelMainApplication` directly If you need to perform some custom logic before starting Camel (or even not starting it at all), you can do so by implementing a `@QuarkusMain` class and starting `CamelMainApplication` yourself diff --git a/docs/modules/ROOT/pages/user-guide/configuration.adoc b/docs/modules/ROOT/pages/user-guide/configuration.adoc index 38bfce2cb45..4916a81c1f3 100644 --- a/docs/modules/ROOT/pages/user-guide/configuration.adoc +++ b/docs/modules/ROOT/pages/user-guide/configuration.adoc @@ -53,7 +53,7 @@ import org.apache.camel.component.log.LogComponent; import org.apache.camel.support.processor.DefaultExchangeFormatter; @ApplicationScoped -public static class EventHandler { +public class EventHandler { public void onComponentAdd(@Observes ComponentAddEvent event) { if (event.getComponent() instanceof LogComponent) { /* Perform some custom configuration of the component */ @@ -126,7 +126,7 @@ In case autowiring is performed for some component option, you should see a simi [source,shell] ---- -Autowired property: exchangeFormatter on component: log as exactly one instance of type: software.amazon.org.apache.camel.spi.ExchangeFormatter (org.apache.camel.support.processor.DefaultExchangeFormatter) found in the registry +Autowired property: exchangeFormatter on component: log as exactly one instance of type: org.apache.camel.spi.ExchangeFormatter (org.apache.camel.support.processor.DefaultExchangeFormatter) found in the registry ---- === Default beans and Camel component autowiring diff --git a/docs/modules/ROOT/pages/user-guide/defining-camel-routes.adoc b/docs/modules/ROOT/pages/user-guide/defining-camel-routes.adoc index 0b4d38f6306..e615c1b6fd9 100644 --- a/docs/modules/ROOT/pages/user-guide/defining-camel-routes.adoc +++ b/docs/modules/ROOT/pages/user-guide/defining-camel-routes.adoc @@ -79,11 +79,7 @@ Path globbing like `camel.main.routes-include-pattern = *./routes.xml` currently .Route [source,xml] ---- -<routes xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" - xmlns="https://camel.apache.org/schema/spring" - xsi:schemaLocation=" - https://camel.apache.org/schema/spring - https://camel.apache.org/schema/spring/camel-spring.xsd"> +<routes xmlns="http://camel.apache.org/schema/xml-io"> <route id="xml-route"> <from uri="timer:from-xml?period=1000"/> @@ -110,7 +106,7 @@ The route XML should be in the simplified version like: .Rest DSL [source,xml] ---- -<rests xmlns="https://camel.apache.org/schema/spring"> +<rests xmlns="http://camel.apache.org/schema/xml-io"> <rest id="greeting" path="/greeting"> <get path="/hello"> <to uri="direct:greet"/> @@ -122,7 +118,7 @@ The route XML should be in the simplified version like: .Route Templates [source,xml] ---- -<routeTemplates xmlns="https://camel.apache.org/schema/spring"> +<routeTemplates xmlns="http://camel.apache.org/schema/xml-io"> <routeTemplate id="myTemplate"> <templateParameter name="name"/> <templateParameter name="greeting"/> diff --git a/docs/modules/ROOT/pages/user-guide/dependency-management.adoc b/docs/modules/ROOT/pages/user-guide/dependency-management.adoc index 1290de4448b..d3c9108f6bf 100644 --- a/docs/modules/ROOT/pages/user-guide/dependency-management.adoc +++ b/docs/modules/ROOT/pages/user-guide/dependency-management.adoc @@ -63,7 +63,7 @@ The generated `pom.xml` will look similar to the following: ==== BOM stands for "Bill of Materials" - it is a `pom.xml` whose main purpose is to manage the versions of artifacts so that end users importing the BOM in their projects do not need to care which particular versions of the artifacts -are supposed to work together. In other words, having a BOM imported in the `<depependencyManagement>` section +are supposed to work together. In other words, having a BOM imported in the `<dependencyManagement>` section of your `pom.xml` allows you to avoid specifying versions for the dependencies managed by the given BOM. ==== @@ -76,7 +76,7 @@ With https://quarkus.io/guides/cli-tooling[Quarkus CLI] you can select the exten Quarkus CLI also comes in handy when upgrading the BOM versions. The `io.quarkus.platform` BOMs are aligned with each other. -That means that if an artifact is managed more than one BOM, it is always managed in the same version. +That means that if an artifact is managed by more than one BOM, it is always managed in the same version. This has the advantage that application developers do not need to care for the compatibility of the individual artifacts that may come from various independent projects. Note that not all combinations of artifacts managed by the various BOMs are tested. diff --git a/docs/modules/ROOT/pages/user-guide/index.adoc b/docs/modules/ROOT/pages/user-guide/index.adoc index 6982153c9d7..f74bfd2a9b9 100644 --- a/docs/modules/ROOT/pages/user-guide/index.adoc +++ b/docs/modules/ROOT/pages/user-guide/index.adoc @@ -4,7 +4,7 @@ This guide is for developers writing Camel applications on top of Quarkus. -xref:manual::getting-started.adoc[Getting started with Camel] is user guide to start with Camel in general. +xref:manual::getting-started.adoc[Getting started with Camel] is the guide to start with Camel in general. WARNING: Camel Quarkus is a new project and this guide is a work in progress. https://github.com/apache/camel-quarkus/issues[Issue reports] and fixes are welcome. diff --git a/docs/modules/ROOT/pages/user-guide/native-mode.adoc b/docs/modules/ROOT/pages/user-guide/native-mode.adoc index 54e889c0329..01bb5de6202 100644 --- a/docs/modules/ROOT/pages/user-guide/native-mode.adoc +++ b/docs/modules/ROOT/pages/user-guide/native-mode.adoc @@ -66,7 +66,7 @@ For instance, with an exception handler like this [source,java] ---- onException(MyException.class).handled(true); -from("direct:route-that-could-produce-my-exception").throw(MyException.class); +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]. diff --git a/docs/modules/ROOT/pages/user-guide/testing.adoc b/docs/modules/ROOT/pages/user-guide/testing.adoc index 25386d005ce..8c6c35fe63c 100644 --- a/docs/modules/ROOT/pages/user-guide/testing.adoc +++ b/docs/modules/ROOT/pages/user-guide/testing.adoc @@ -53,7 +53,7 @@ class MyIT extends MyTest { } ---- -An example implementation of a native can be found https://github.com/apache/camel-quarkus/blob/main/integration-tests/bindy/src/test/java/org/apache/camel/quarkus/component/bindy/it/MessageRecordIT.java[here]. +An example implementation of a native test can be found https://github.com/apache/camel-quarkus/blob/main/integration-tests/bindy/src/test/java/org/apache/camel/quarkus/component/bindy/it/MessageRecordIT.java[here]. [[jvm-vs-native-tests]] == `@QuarkusTest` Vs `@QuarkusIntegrationTest` diff --git a/docs/modules/ROOT/pages/user-guide/testing/external-services.adoc b/docs/modules/ROOT/pages/user-guide/testing/external-services.adoc index 12aca837917..9d5aac15d7b 100644 --- a/docs/modules/ROOT/pages/user-guide/testing/external-services.adoc +++ b/docs/modules/ROOT/pages/user-guide/testing/external-services.adoc @@ -19,11 +19,11 @@ Note that these settings have a higher precedence than the settings in `applicat [source,java] ---- import java.util.Map; -import java.util.HashMap; import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; import org.testcontainers.containers.GenericContainer; import org.testcontainers.containers.wait.strategy.Wait; +import org.testcontainers.utility.DockerImageName; public class MyTestResource implements QuarkusTestResourceLifecycleManager { @@ -32,7 +32,7 @@ public class MyTestResource implements QuarkusTestResourceLifecycleManager { @Override public Map<String, String> start() { // Start the needed container(s) - myContainer = new GenericContainer(DockerImageName.parse("my/image:1.0.0")) + myContainer = new GenericContainer<>(DockerImageName.parse("my/image:1.0.0")) .withExposedPorts(1234) .waitingFor(Wait.forListeningPort()); @@ -40,10 +40,9 @@ public class MyTestResource implements QuarkusTestResourceLifecycleManager { // Pass the configuration to the application under test // You can also pass camel component property names / values to automatically configure Camel components - return new HashMap<>() {{ - put("my-container.host", container.getHost()); - put("my-container.port", "" + container.getMappedPort(1234)); - }}; + return Map.of( + "my-container.host", myContainer.getHost(), + "my-container.port", String.valueOf(myContainer.getMappedPort(1234))); } @Override diff --git a/extensions-core/core/runtime/src/main/doc/configuration.adoc b/extensions-core/core/runtime/src/main/doc/configuration.adoc index 5cceb953546..2d04b9fce37 100644 --- a/extensions-core/core/runtime/src/main/doc/configuration.adoc +++ b/extensions-core/core/runtime/src/main/doc/configuration.adoc @@ -55,9 +55,9 @@ When specifying a custom bean via properties in native mode with configuration l For instance, the custom bean definition below involves the use of reflection for bean instantiation and setter invocation: [source,properties] ---- +---- camel.beans.customBeanWithSetterInjection = #class:org.example.PropertiesCustomBeanWithSetterInjection camel.beans.customBeanWithSetterInjection.counter = 123 ---- +---- As such, the class `PropertiesCustomBeanWithSetterInjection` needs to be link:https://quarkus.io/guides/writing-native-applications-tips#registering-for-reflection[registered for reflection], note that field access could be omitted in this case. diff --git a/extensions-core/yaml-io/runtime/src/main/doc/usage.adoc b/extensions-core/yaml-io/runtime/src/main/doc/usage.adoc index fe8abfa4986..d93dcad4afc 100644 --- a/extensions-core/yaml-io/runtime/src/main/doc/usage.adoc +++ b/extensions-core/yaml-io/runtime/src/main/doc/usage.adoc @@ -1,6 +1,6 @@ -This an auxiliary extension that provides support for Camel route dumping in YAML. +This is an auxiliary extension that provides support for Camel route dumping in YAML. -For example, when the application is configured to dump routes on startup with the following configuration in `application.properties`. +For example, to dump routes in YAML on startup, add the following configuration to `application.properties`: [source,properties] ---- diff --git a/extensions/cxf-soap/runtime/src/main/doc/usage.adoc b/extensions/cxf-soap/runtime/src/main/doc/usage.adoc index 2bd204961fc..d4dbcedb1b4 100644 --- a/extensions/cxf-soap/runtime/src/main/doc/usage.adoc +++ b/extensions/cxf-soap/runtime/src/main/doc/usage.adoc @@ -75,7 +75,7 @@ public interface CalculatorService { } ---- -<1> NOTE: JAX-WS annotations are required. The Simple CXF Frontend is not supported. Complex parameter types require JAXB annotations to work in properly in native mode. +<1> NOTE: JAX-WS annotations are required. The Simple CXF Frontend is not supported. Complex parameter types require JAXB annotations to work properly in native mode. [TIP] ==== @@ -166,6 +166,7 @@ import org.apache.camel.builder.RouteBuilder; import org.apache.cxf.ext.logging.LoggingFeature; import {javaxOrJakartaPackagePrefix}.enterprise.context.ApplicationScoped; import {javaxOrJakartaPackagePrefix}.enterprise.inject.Produces; +import {javaxOrJakartaPackagePrefix}.inject.Inject; import {javaxOrJakartaPackagePrefix}.inject.Named; @ApplicationScoped diff --git a/extensions/freemarker/runtime/src/main/doc/configuration.adoc b/extensions/freemarker/runtime/src/main/doc/configuration.adoc index eb2c9c10247..3cebd6c0bbe 100644 --- a/extensions/freemarker/runtime/src/main/doc/configuration.adoc +++ b/extensions/freemarker/runtime/src/main/doc/configuration.adoc @@ -35,7 +35,7 @@ public class MyRoutes extends RouteBuilder { @Override public void configure() { from("direct:example") - .to("freemarker:templates/email.ftl?configuration=myFreemarkerConfig") + .to("freemarker:templates/email.ftl?configuration=myFreemarkerConfig"); } } diff --git a/extensions/grpc/runtime/src/main/doc/usage.adoc b/extensions/grpc/runtime/src/main/doc/usage.adoc index a6f686659c5..e459bf1fa6a 100644 --- a/extensions/grpc/runtime/src/main/doc/usage.adoc +++ b/extensions/grpc/runtime/src/main/doc/usage.adoc @@ -84,7 +84,7 @@ For example, to include SSL / TLS keys and certificates. [source,properties] ---- -quarkus.native.resources.includes = certs/*.pem,certs.*.key +quarkus.native.resources.includes = certs/*.pem,certs/*.key ---- More information about selecting resources for inclusion in the native executable can be found in the xref:user-guide/native-mode.adoc#embedding-resource-in-native-executable[native mode guide]. diff --git a/extensions/gson/runtime/src/main/doc/configuration.adoc b/extensions/gson/runtime/src/main/doc/configuration.adoc index e190b8b43c2..30e3676f1d3 100644 --- a/extensions/gson/runtime/src/main/doc/configuration.adoc +++ b/extensions/gson/runtime/src/main/doc/configuration.adoc @@ -12,7 +12,7 @@ For example when using any of the following: [source,java] ---- -package org.acme.MyPojo; +package org.acme; @RegisterForReflection public class MyPojo { diff --git a/extensions/hazelcast/runtime/src/main/doc/configuration.adoc b/extensions/hazelcast/runtime/src/main/doc/configuration.adoc index 29a10e828d9..f9168a39b9e 100644 --- a/extensions/hazelcast/runtime/src/main/doc/configuration.adoc +++ b/extensions/hazelcast/runtime/src/main/doc/configuration.adoc @@ -19,7 +19,7 @@ To use the `HazelcastInstance` bean in the Hazelcast component, you should confi hazelcastComponent.setHazelcastInstance(hazelcastInstance); <2> hazelcastComponent.setHazelcastMode(HazelcastConstants.HAZELCAST_CLIENT_MODE); - return getHazelcastComponent(hazelcastComponent); + return hazelcastComponent; } ---- <1> The `HazelcastInstance` bean instance created by the `quarkus-hazelcast` extension diff --git a/extensions/jackson/runtime/src/main/doc/usage.adoc b/extensions/jackson/runtime/src/main/doc/usage.adoc index 8b6eee89869..ec0bd8beacd 100644 --- a/extensions/jackson/runtime/src/main/doc/usage.adoc +++ b/extensions/jackson/runtime/src/main/doc/usage.adoc @@ -23,7 +23,7 @@ public class Routes extends RouteBuilder { JacksonDataFormat dataFormat = new JacksonDataFormat(); dataFormat.setObjectMapper(mapper); // Use the dataFormat instance in a route definition - from("direct:my-direct").marshal(dataFormat) + from("direct:my-direct").marshal(dataFormat); } } ---- @@ -43,7 +43,7 @@ public class Routes extends RouteBuilder { // Make JacksonDataFormat discover the Quarkus Jackson `ObjectMapper` from the Camel registry dataFormat.setAutoDiscoverObjectMapper(true); // Use the dataFormat instance in a route definition - from("direct:my-direct").marshal(dataFormat) + from("direct:my-direct").marshal(dataFormat); } } ---- @@ -104,7 +104,7 @@ public class Routes extends RouteBuilder { JacksonDataFormat dataFormat = new JacksonDataFormat(); dataFormat.setObjectMapper(mapper); // Use the dataFormat instance in a route definition - from("direct:my-direct").marshal(dataFormat) + from("direct:my-direct").marshal(dataFormat); } } ---- diff --git a/extensions/jasypt/runtime/src/main/doc/usage.adoc b/extensions/jasypt/runtime/src/main/doc/usage.adoc index 2d315d0519d..6ee9deff974 100644 --- a/extensions/jasypt/runtime/src/main/doc/usage.adoc +++ b/extensions/jasypt/runtime/src/main/doc/usage.adoc @@ -40,7 +40,7 @@ public class MySecureRoute extends RouteBuilder { } ---- -TIP: You can use the ability to mask security sensitive configuration in Camel by suffixing property values with `.secret`. +TIP: You can use the ability to mask security sensitive configuration in Camel by suffixing property names with `.secret`. You can also disable the startup configuration summary with the configuration `camel.main.autoConfigurationLogSummary = false`. === Injecting encrypted configuration @@ -51,7 +51,7 @@ You can use the `@ConfigProperty` annotation to inject encrypted configuration i ---- @ApplicationScoped public class MySecureRoute extends RouteBuilder { - @ConfigInject("my.secret") + @ConfigProperty(name = "my.secret") String mySecret; @Override @@ -86,7 +86,7 @@ import org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig; import org.jasypt.iv.RandomIvGenerator; import org.jasypt.salt.RandomSaltGenerator; -public class JasyptConfigurationCustomizer implements JasyptConfigurationCustomizer { +public class MyJasyptEncryptorCustomizer implements JasyptConfigurationCustomizer { public void customize(EnvironmentStringPBEConfig config) { // Custom algorithms config.setAlgorithm("PBEWithHmacSHA256AndAES_256"); diff --git a/extensions/jta/runtime/src/main/doc/usage.adoc b/extensions/jta/runtime/src/main/doc/usage.adoc index f867e4b597d..fda0e20fa91 100644 --- a/extensions/jta/runtime/src/main/doc/usage.adoc +++ b/extensions/jta/runtime/src/main/doc/usage.adoc @@ -8,7 +8,7 @@ from("direct:transaction") .transacted() .to("sql:INSERT INTO A TABLE ...?dataSource=#ds1") .to("sql:INSERT INTO A TABLE ...?dataSource=#ds2") - .log("All data committed to DataSources ds1 and ds2") + .log("All data committed to DataSources ds1 and ds2"); ---- You can use a specific transaction policy by referring to its name. @@ -17,14 +17,14 @@ You can use a specific transaction policy by referring to its name. ---- from("direct:transaction") .transacted("PROPAGATION_REQUIRED") - .to("sql:INSERT INTO A TABLE ...?dataSource=#ds1"); + .to("sql:INSERT INTO A TABLE ...?dataSource=#ds1") .to("sql:INSERT INTO A TABLE ...?dataSource=#ds2") - .log("All data committed to DataSources ds1 and ds2") + .log("All data committed to DataSources ds1 and ds2"); ---- Support is provided for the following transaction policies. -[cols="50,.^50] +[cols="50,.^50"] |=== |Policy | Description diff --git a/extensions/kubernetes/runtime/src/main/doc/configuration.adoc b/extensions/kubernetes/runtime/src/main/doc/configuration.adoc index afde19dca04..8b560b1462b 100644 --- a/extensions/kubernetes/runtime/src/main/doc/configuration.adoc +++ b/extensions/kubernetes/runtime/src/main/doc/configuration.adoc @@ -51,8 +51,8 @@ from("direct:pods") When using any of the OpenShift specific components: -* `openenshift-build-configs` -* `openenshift-builds` +* `openshift-build-configs` +* `openshift-builds` * `openshift-deploymentconfigs` You must add the following dependency to your application. diff --git a/extensions/ldap/runtime/src/main/doc/usage.adoc b/extensions/ldap/runtime/src/main/doc/usage.adoc index bfb6ac5adc9..056c6a90d69 100644 --- a/extensions/ldap/runtime/src/main/doc/usage.adoc +++ b/extensions/ldap/runtime/src/main/doc/usage.adoc @@ -21,7 +21,7 @@ If you need to specify an option that is not listed above, use the following pro [source,properties] ---- -quarkus.camel.ldap.dr-contexts."your_name".additional-options."not-listed_option_name" +quarkus.camel.ldap.dir-contexts."your_name".additional-options."not-listed_option_name" ---- Here is an example of configuration of a dirContext named `your_context` using SSL. diff --git a/extensions/minio/runtime/src/main/doc/configuration.adoc b/extensions/minio/runtime/src/main/doc/configuration.adoc index d343c36645e..4b3c256be87 100644 --- a/extensions/minio/runtime/src/main/doc/configuration.adoc +++ b/extensions/minio/runtime/src/main/doc/configuration.adoc @@ -10,7 +10,7 @@ Camel will autowire client into the Minio component. This configuration allows definition of only one minio client, therefore it isn't possible to define several different minio endpoints, which run together. * Provide client/clients for camel registry (e.g. CDI producer/bean) and reference them from endpoint. -[source,properties] +[source] ---- minio:foo?minioClient=#minioClient ---- \ No newline at end of file diff --git a/extensions/mongodb-gridfs/runtime/src/main/doc/configuration.adoc b/extensions/mongodb-gridfs/runtime/src/main/doc/configuration.adoc index dc4f1a1d113..568832ed4ed 100644 --- a/extensions/mongodb-gridfs/runtime/src/main/doc/configuration.adoc +++ b/extensions/mongodb-gridfs/runtime/src/main/doc/configuration.adoc @@ -1,7 +1,7 @@ The extension leverages the https://quarkus.io/guides/mongodb[Quarkus MongoDB Client] extension. The Mongo client can be configured via the Quarkus MongoDB Client https://quarkus.io/guides/mongodb#configuration-reference[configuration options]. -The Camel Quarkus MongoDB extension automatically registers a MongoDB client bean named `camelMongoClient`. This can be referenced in the mongodb endpoint URI +This extension automatically registers a MongoDB client bean named `camelMongoClient`. This can be referenced in the mongodb endpoint URI `connectionBean` path parameter. For example: [source,java] diff --git a/extensions/platform-http/runtime/src/main/doc/usage.adoc b/extensions/platform-http/runtime/src/main/doc/usage.adoc index 5b5cd162403..5b76e166c13 100644 --- a/extensions/platform-http/runtime/src/main/doc/usage.adoc +++ b/extensions/platform-http/runtime/src/main/doc/usage.adoc @@ -32,7 +32,7 @@ Then you can use the Camel REST DSL: ---- rest() .get("/my-get-endpoint") - .to("direct:handleGetRequest"); + .to("direct:handleGetRequest") .post("/my-post-endpoint") .to("direct:handlePostRequest"); diff --git a/extensions/rest-openapi/runtime/src/main/doc/usage.adoc b/extensions/rest-openapi/runtime/src/main/doc/usage.adoc index 306fbee1e98..edec4737d6e 100644 --- a/extensions/rest-openapi/runtime/src/main/doc/usage.adoc +++ b/extensions/rest-openapi/runtime/src/main/doc/usage.adoc @@ -70,7 +70,7 @@ The contract files in `src/main/openapi` need to be added in the classpath, sinc </build> ---- -When running in the native mode, the contract files must be added to the native image via the `quarkus.native.resources.include` configuration property. +When running in the native mode, the contract files must be added to the native image via the `quarkus.native.resources.includes` configuration property. [source,properties] ---- diff --git a/extensions/servlet/runtime/src/main/doc/usage.adoc b/extensions/servlet/runtime/src/main/doc/usage.adoc index 7b3c2905384..88f893b99bc 100644 --- a/extensions/servlet/runtime/src/main/doc/usage.adoc +++ b/extensions/servlet/runtime/src/main/doc/usage.adoc @@ -72,6 +72,7 @@ then you can do this with a custom Servlet class through the `jakarta.servlet.an [source,java] ---- +import jakarta.servlet.annotation.WebInitParam; import jakarta.servlet.annotation.WebServlet; import org.apache.camel.component.servlet.CamelHttpTransportServlet; diff --git a/extensions/tls-registry/runtime/src/main/doc/usage.adoc b/extensions/tls-registry/runtime/src/main/doc/usage.adoc index f9c7d6354bf..d59013d820f 100644 --- a/extensions/tls-registry/runtime/src/main/doc/usage.adoc +++ b/extensions/tls-registry/runtime/src/main/doc/usage.adoc @@ -118,7 +118,7 @@ Some `quarkus.tls.*` options have no equivalent in `SSLContextParameters`, becau |Not carried over. Protocol negotiation is handled by the consuming component. |`pqc-enforcement-policy` -|Not carried over. Use `quarkus.tls.<name>.key-exchange-groups`, which is, to constrain the groups Camel offers. +|Not carried over. Use `quarkus.tls.<name>.key-exchange-groups`, which is carried over, to constrain the groups Camel offers. |=== These options continue to apply to Quarkus's own TLS consumers as normal. Only the Camel bridge is affected. diff --git a/extensions/vertx-websocket/runtime/src/main/doc/intro.adoc b/extensions/vertx-websocket/runtime/src/main/doc/intro.adoc index 4eefc4aa177..e4b8a582020 100644 --- a/extensions/vertx-websocket/runtime/src/main/doc/intro.adoc +++ b/extensions/vertx-websocket/runtime/src/main/doc/intro.adoc @@ -1,3 +1,3 @@ -This extension enables you to create WebSocket endpoints to that act as either a WebSocket server, or as a client to connect an existing WebSocket . +This extension enables you to create WebSocket endpoints that act as either a WebSocket server, or as a client to connect to an existing WebSocket. It is built on top of the Eclipse Vert.x HTTP server provided by the `quarkus-vertx-http` extension. \ No newline at end of file diff --git a/extensions/vertx-websocket/runtime/src/main/doc/usage.adoc b/extensions/vertx-websocket/runtime/src/main/doc/usage.adoc index 5459832f207..2b1ab981530 100644 --- a/extensions/vertx-websocket/runtime/src/main/doc/usage.adoc +++ b/extensions/vertx-websocket/runtime/src/main/doc/usage.adoc @@ -62,7 +62,7 @@ from("vertx-websocket:/my-websocket-path") .log("Got body: ${body}"); from("direct:sendToWebSocket") - .log("vertx-websocket:/my-websocket-path"); + .to("vertx-websocket:/my-websocket-path"); ---- Or alternatively, you can refer to the full host & port configuration for the Quarkus HTTP server. @@ -70,7 +70,7 @@ Or alternatively, you can refer to the full host & port configuration for the Qu [source,java] ---- from("direct:sendToWebSocket") - .log("vertx-websocket:{{quarkus.http.host}}:{{quarkus.http.port}}/my-websocket-path"); + .to("vertx-websocket:{{quarkus.http.host}}:{{quarkus.http.port}}/my-websocket-path"); ---- When producing messages to an external WebSocket server, then you must always provide the host name and port (if required). diff --git a/extensions/wasm/runtime/src/main/doc/usage.adoc b/extensions/wasm/runtime/src/main/doc/usage.adoc index c23e17d000d..d0e105923df 100644 --- a/extensions/wasm/runtime/src/main/doc/usage.adoc +++ b/extensions/wasm/runtime/src/main/doc/usage.adoc @@ -3,7 +3,7 @@ When Wasm modules are read from the classpath (the default) in native mode, you must ensure that the module(s) are added to the native image. You can do this via a configuration property in `application.properties`. -For example, assuming `.wasm` files are read from a classpath location of `was/modules`. +For example, assuming `.wasm` files are read from a classpath location of `wasm/modules`. [source,properties] ---- diff --git a/extensions/xslt/runtime/src/main/doc/configuration.adoc b/extensions/xslt/runtime/src/main/doc/configuration.adoc index 2b10af108aa..c1d9dbac477 100644 --- a/extensions/xslt/runtime/src/main/doc/configuration.adoc +++ b/extensions/xslt/runtime/src/main/doc/configuration.adoc @@ -17,7 +17,7 @@ Compiling more than one template requires the native build to run on JDK 21.0.8 `<xsl:include>` is supported in native mode when the including stylesheet is listed in `quarkus.camel.xslt.sources` and included stylesheets are classpath-relative. Nested classpath includes are resolved at build time. -`<xsl:messaging>` XSLT elements are supported in JVM mode only right now. +`<xsl:message>` XSLT elements are supported in JVM mode only right now. If `aggregate` DSL is used, `XsltSaxonAggregationStrategy` has to be used such as [source,java]
