This is an automated email from the ASF dual-hosted git repository. nfilotto pushed a commit to branch camel-3.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.x by this push: new 9e41f0f7698 camel-netty - Fix doc about SSL configuration 9e41f0f7698 is described below commit 9e41f0f76988ae368c76d6503e1b3886905405f7 Author: Nicolas Filotto <essob...@users.noreply.github.com> AuthorDate: Fri Sep 1 19:13:35 2023 +0200 camel-netty - Fix doc about SSL configuration ## Motivation [Someone from the community](https://stackoverflow.com/questions/76991186/cannot-resolve-method-setsslcontextparameters-in-nettycomponent) raised the fact that the code snippet describing how to configure SSL in the netty component is invalid/outdated and should be fixed. ## Modifications: * Set the SSL configuration from the `NettyConfiguration` instead of `NettyComponent` --- components/camel-netty/src/main/docs/netty-component.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-netty/src/main/docs/netty-component.adoc b/components/camel-netty/src/main/docs/netty-component.adoc index aacaa9c99dc..dc23743fe22 100644 --- a/components/camel-netty/src/main/docs/netty-component.adoc +++ b/components/camel-netty/src/main/docs/netty-component.adoc @@ -236,7 +236,7 @@ SSLContextParameters scp = new SSLContextParameters(); scp.setKeyManagers(kmp); NettyComponent nettyComponent = getContext().getComponent("netty", NettyComponent.class); -nettyComponent.setSslContextParameters(scp); +nettyComponent.getConfiguration().setSslContextParameters(scp); ---- [[Netty-SpringDSLbasedconfigurationofendpoint]]