1 Reply Latest reply on Aug 26, 2013 8:52 AM by davsclaus

    How to forward request to a secured external service in a camel route

    rvojjala

      I need to forward a request from a secured (https) service to another secured external service as in:

       

             

       

       

      I even tried using "camel:sslContextParameters" and pass it as a parameter on the urls.

      None of these worked.

      Appreciate any help on this.

        • 1. Re: How to forward request to a secured external service in a camel route
          davsclaus

          You need to use "jettyInternal" and "jettyExternal" in the route, as if you use "jetty" it uses the default component.

           

          eg you should use the  as the Camel component.

           

          Something alike

           

          <route>
          <from uri="jettyInternal:https://0.0.0.0:8083/MyAppContext?matchOnUriPrefix=true"></from>
          <from uri="jettyExternal:https://external:9083/ExternalService?bridgeEndpoint=true&amp;throwExceptionOnFailure=true"></from> 
          </route>