You can setup the endpoint property just like this <restConfiguration component="netty4-http” > <camel:componentProperty key=“configuration" value="#configuration"/> <camel:endpointProperty key=“nettySharedHttpServer" value="#sharedNettyHttpServer"/> <camel:endpointProperty key=“securityConfiguration" value=“#securityConfiguration"/> </restConfiguration>
BTW, you need to create the securityConfiguration yourself. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On May 22, 2015 at 3:06:20 AM, Alex Soto (alex.s...@envieta.com) wrote: > I would like to reuse the same Netty Service that is configured outside of > the Rest DSL. > For example I have the Netty and SSL configuration: > > > > > > type="JKS" provider="SUN"/> > > > > type="JKS" provider="SUN"/> > > > > > > > > > > > > > init-method="start" destroy-method="stop"> > > > > > Now in my Camel Context I declare the Rest DSL: > > > > > > > > > > > > > > > > > > > > > > > > However, it does not seem to be picking up the shared configuration. Log file > shows: > > BootstrapFactory on port 0 is using bootstrap configuration: > [NettyServerBootstrapConfiguration{protocol='tcp', > host=‘XXXXX.local', port=0, broadcast=false, sendBufferSize=65536, > receiveBufferSize=65536, > receiveBufferSizePredictor=0, workerCount=0, bossCount=1, keepAlive=true, > tcpNoDelay=true, > reuseAddress=true, connectTimeout=10000, backlog=0, > serverInitializerFactory=org.apache.camel.component.netty4.http.HttpServerInitializerFactory@2db0d008, > > nettyServerBootstrapFactory=null, options=null, ssl=false, sslHandler=null, > sslContextParameters='null', needClientAuth=false, > enabledProtocols='TLSv1,TLSv1.1,TLSv1.2, > keyStoreFile=null, trustStoreFile=null, keyStoreResource='null', > trustStoreResource='null', > keyStoreFormat='JKS', securityProvider='SunX509', passphrase='null', > bossGroup=null, > workerGroup=null, networkInterface='null’}] > > I could not find any examples of how to accomplish this. Any hints? > > Best regards, > Alex soto