Hi,

I am using Camel 2.12.3.

I am sending a https get  using the following code to remoteHostA  :
 context.addRoutes(new RouteBuilder() {
            @Override
            public void configure() {           
             
        String userHome=System.getProperty("user.home");
         String keyStoreFile=userHome + "/keystore/remoteHostA.jks";
        System.setProperty("javax.net.ssl.trustStore",keyStoreFile);
        

            
                from("timer://foo?fixedRate=true&period=100").
                .to("https://remoteHostA.com/";)                
                .to("stream:out");
            }
            
            
        });


In my app, I also need to make https request to remoteHostB, which has 
keyStoreFile remoteHostB.jks.  How to set up the  keyStoreFiles so that 

       I can make https request  to remoteHostA and remoteHostB in the same 
application ?


Thanks in advance for your assistance !


Shing 

Reply via email to