Hello List! In our Camel routes (Camel 2.2.0-fuse-02-00 and CXF 2.2.9-fuse-01-00), deployed into Servicemix (4.2.0-fuse-02-00), we are using camel-cxf as producer to call external web services. For security reasons, we are using an HTTPS connection to the web service provider, using the following configuration (only the HTTPS configuration for CXF is shown):
{code:xml} <http:conduit name="{http://www.company.com/service/OrderEntry/1}OrderEntryServicePort.http-conduit"> <http:tlsClientParameters disableCNCheck="true"> <sec:trustManagers> <sec:keyStore type="JKS" password="${trustStore.password}" file="${trustStore.file}" /> </sec:trustManagers> <sec:cipherSuitesFilter> <sec:include>.*_EXPORT_.*</sec:include> <sec:include>.*_EXPORT1024_.*</sec:include> <sec:include>.*_WITH_DES_.*</sec:include> <sec:include>.*_WITH_NULL_.*</sec:include> <sec:exclude>.*_DH_anon_.*</sec:exclude> </sec:cipherSuitesFilter> </http:tlsClientParameters> </http:conduit> {code} Everithing works well. But now we got the requirement to switch between HTTPS and HTTP (we should use HTTP in the test environment first to make sure everyting works well before we switching to HTTPS) without redeploying our Camel routes. At present this is not possible (in my opinion), because the Spring configuration files are inside our Camel OSGI bundles. So, we have to redeploy our bundles for switching between HTTP and HTTPS. Is there an existing easy to use solution for this requirement? Would is work, if we use a property placeholder for http:conduit name and set this value to a not existing port or a URL we don't use (e.g. http://localhost:9999/*)? The last choice could be to evaluate the choosen protocol and if it's https we can configure the http:conduit in Java? Thanks in advance, Christian -- View this message in context: http://camel.465427.n5.nabble.com/Using-a-camel-cxf-producer-and-want-switch-between-http-and-https-without-new-deployments-tp3403048p3403048.html Sent from the Camel - Users mailing list archive at Nabble.com.