Skip to main content Skip to complementary content

Configuring the second sub-route

Procedure

  1. Double-click the fetchURL component to display its Basic settings view in the Component tab.
  2. In the URI field, enter "direct:fetchURL" that is defined in the cContentEnricher component.
  3. Double-click the setURI component to display its Basic settings view in the Component tab.
  4. Click [+] to add a row to the Headers table.
    In the Name field, enter org.apache.camel.Exchange.HTTP_URI to define the HTTP URI of each message.
    Select Simple in the Language list.
    In the Value field, enter "http://localhost:8080" of the local Tomcat server.
  5. Double-click the setPATH component to display its Basic settings view in the Component tab.
  6. Click [+] to add a row to the Headers table.
    In the Name field, enter org.apache.camel.Exchange.HTTP_PATH to define the HTTP path of each message.
    Select Simple in the Language list.
    In the Value field, enter "${body}" that is split from the original message.
  7. Double-click the http4Endpoint component to display its Basic settings view in the Component tab.
  8. In the URI field, enter "http4:localhost:8080" to consuming HTTP resources on the local Tomcat server.
  9. Click the Advanced settings view. Click at the bottom of the Dependencies list to add a row and select http4 from the drop-down list. For more information about HTTP4, see the site http://camel.apache.org/http4.html.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!