-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Are you deploying this route in the OSGi container?
If so, I believe that restarting the bundle containing this route should reload that information. I do not know whether using the Karaf commands to stop and start the context or route would do as well, but perhaps someone more knowledgeable can comment? - --- A. Soroka Software & Systems Engineering :: Online Library Environment the University of Virginia Library On May 3, 2012, at 8:33 PM, yoleng wrote: > Hi, > > We used the Camel Jetty as the https server and Camel http component as the > https client. then for these component, we must set the keystore/truststore > parameter. below is example: > > @Override > public void configure() throws Exception { > JettyHttpComponent jettyComponent = > getContext().getComponent("jetty", JettyHttpComponent.class); > SslSelectChannelConnector sslConnector = new > SslSelectChannelConnector(); > SslContextFactory sslFactory = sslConnector.getSslContextFactory(); > sslFactory.setNeedClientAuth(true); > *sslFactory.setKeyStore(keyStorePath)*; > sslFactory.setKeyManagerPassword(keyPassword); > sslFactory.setKeyStorePassword(keyStorePassword); > *sslFactory.setTrustStore(trustStorePath)*; > sslFactory.setTrustStorePassword(trustStorePassword); > Map<Integer, SslSelectChannelConnector> connectors = new > HashMap<Integer, SslSelectChannelConnector>(); > connectors.put(4443, sslConnector); > jettyComponent.setSslSocketConnectors(connectors); > > from("jetty:https://0.0.0.0:4443/myHttpService/") > .convertBodyTo(StreamSource.class) > .inOut(notificationDispatcherEP); > } > > When the servicemix started, this keyStore/trustStore will be read to > Memory. then if I changed the keyStore/trustStore (such as: importing some > trust certification), the changed information will not be noted by > servicemix so that I must restart my application to read again. How can I do > then the Camel Jetty/http component can keep updated when the > keyStore/trustStore updated? > > Thanks. > > Regards. > Leng Yong. > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Camel-Jetty-component-dynamic-configuration-tp5684635.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJPoyZGAAoJEATpPYSyaoIkURwH/1wDVVL1PTfArulRsxglrTIF 4LygF6XUEmHCdi4ACcedM4vnilmjmnXxheXfIQMdI8BAas7s8uFegXM9/OMSSEkA 5qK8acieDbDV6jLBmSbuMS8LtZ+Ar46cqnlR8U2bwdWweosMIh7xMJS9v7tU+C2G JYYcvqxd4ufkQmABPnAKKE0yCM/bAwybI9HP2n8aGwuVLx/HXT7pilf0BPqThF69 xIkai4G61SJjAGsTgVs6W9BEN6v3D9d3V8J78y1ORNzhwUXv44wKGEzG3qYi3Rvg T7N1bbCxLp3m1imfODhibMLWN1Yt5Fa61p0QMpJir7vtLy+fwxCPIbbU86wTzg8= =6s1C -----END PGP SIGNATURE-----