Skip to main content Skip to complementary content

Configuring the components

Procedure

  1. Double-click Read_Output to open its Basic settings view in the Component tab.
  2. In the Path field, type in the path to the source message, for example, "E:/data/output". Keep the default settings for other fields.
  3. Double-click cThrottler to open its Basic settings view in the Component tab.
  4. In the Request per period field, type in the number of messages allowed to pass the throttler per period, for example, 1.
    In the Set time period field, type in the value of the period, for example, 8000.
  5. Double-click Print_File_Name to open its Basic settings view in the Component tab.
  6. In the Code box, enter the code below to get the name of the message that passes the throttler.
    System.out.println("The file that passes throttler is: "+exchange.getIn().getHeader("CamelFileName"));
  7. Double-click Print_File_Content to open its Basic settings view in the Component tab.
  8. In the Code box, enter the code below to get the content of the message that passes the throttler.
    System.out.println("The content of " +exchange.getIn().getHeader("CamelFileName")+ " is: "
    +exchange.getIn().getBody(String.class));
  9. Press Ctrl+S to save your Route.

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 – please let us know!