Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5401

Not all RoutePolicy callback methods are invoked

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.2, 2.10.0
    • 2.9.3, 2.10.1
    • camel-core, camel-spring
    • None
    • Win 7 x64, jdk 7u4

    • Unknown

    Description

      I am looking for a way to get notified when route is being stopped/started (resumed/suspended). I have implemented trivial logging RoutePolicy (extending from RoutePolicySupport). However, during my tests I found that only onInit, onExchangeBegin and onExchangeDone methods are invoked. I tried both approaches - stopping/starting and suspending/resuming, but neither one worked.

      Route state is being handled from another thread using "CamelContext.*Route" methods group.

      I am using SpringCamelApplicationContext. Route is configured using: routePolicyRef attribute of route tag.

      I am fairly new to Camel. Let me know if I am missing something. Thanks.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            arubtsov Andrii Rubtsov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: