LibraryToggle FramesPrintFeedback

To trace a message through your route:

  1. Select Window|Open Perspective|Fuse Integration to open the Fuse Integration perspective as shown in Figure 4.1).


    [Tip]Tip

    You can use the Open Perspective icon (Open Perspective icon) in the perspectives tab to access the list of available perspectives.

  2. In Project Explorer, expand the simple-route project to expose the src/main/resources/META-INF/spring/camel-context.xml file.

  3. Select Run As|Local Camel Context (without tests) from the camel-context.xml file's context menu.

  4. In JMX Explorer, expand Local Processes.

  5. Double click Local Camel Context [id] to expand the elements of your route as shown in Figure 4.2).


  6. In JMX Explorer, select Start Tracing from the camel-1's context menu.

    Fuse IDE displays a graphical representation of your route in Diagram View.

  7. In Diagram View, drag the nodes to rearrange them, so you can clearly see the route's flow paths.

    [Tip]Tip

    You will have to rearrange the nodes in Diagram View each time you select a different node in JMX Explorer.

  8. In Project Explorer, expand simple-route/src/data, so you can access the message1.xml and message2.xml files as shown in Figure 4.3.


  9. Drag message1.xml and drop it on .../camel-1/Endpoints/file/src/data?noop=true.

    As the message traverses the route, Fuse IDE traces and records its passage at each step and displays the results in Messages View.

  10. Repeat Step 9.

  11. Drag message2.xml drop it on .../camel-1/Endpoints/file/src/data?noop=true.

  12. Repeat Step 11.

  13. In the bottom, right panel, switch from Console to Messages View.

  14. In JMX Explorer, click camel-1 to populate Messages View with the traces of each message.

    As shown in Figure 4.4, Fuse IDE draws the route in Diagram View, tagging paths exiting a processing step with timing and performance metrics. Only the metric Total exchanges is displayed in the diagram. Hovering over the displayed metrics reveals additional metrics about message flow:

    • mean time the step took to process a message

    • maximum time the step took to process a message

    • minimum time the step took to process a message


  15. In Messages View, click a message instance.

    The associated step in the route is highlighted in Diagram View. You can step through the message instances to see how a particular message traversed the route and whether it was processed as expected at each step in the route.

    Fuse IDE displays the details about a message instance in the top half of the Properties panel and the contents of the message instance, including any headers, in the bottom half of the Properties panel. So, if your application sets headers at any step within a route, you can check whether they are set as expected.

    [Tip]Tip

    You can control columnar layout in all Fuse IDE tables. Drag a column's border rule to expand or contract its width. To hide a column, totally contract its borders. You can rearrange table layout by reordering its columns. To do so, drag a column header to where you want it to appear in the table.

  16. When done, switch back to the Console and click the stop button (Stop icon) in the upper, right side of its pane.

To learn more about message enrichment see:

Comments powered by Disqus