This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch camel-3.21.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.21.x by this push:
     new 0da6ed990ce camel-netty - Fix doc about SSL configuration
0da6ed990ce is described below

commit 0da6ed990ce0a38a496212102215a583f8f6760b
Author: Nicolas Filotto <essob...@users.noreply.github.com>
AuthorDate: Fri Sep 1 19:12:33 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]]

Reply via email to