Camel
  1. Camel
  2. CAMEL-4669

Add JMX support for clearing the resource cache on components that extend ResourceEndpoint

    Details

    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown

      Description

      Add JMX support for cache clearing to the abstract ResourceEndpoint class from camel-core. This allows freemarker, velocity and other components that use this class to have the ability to force a re-load of cached resources.

      1. camel-4669.patch
        15 kB
        Rich Newcomb

        Activity

        Hide
        Rich Newcomb added a comment -

        Patch attached.

        NOTE: this patch adds @Inherited to the org.apache.camel.api.management.ManagedResource annotation definition. This seems appropriate to me; however, I would like verification from the camel riders that it will not cause unwanted side-effects.

        I can modify the patch to explicitly decorate leaf-node ResourceEndpoint classes with this annotation if there is an issue.

        Show
        Rich Newcomb added a comment - Patch attached. NOTE: this patch adds @Inherited to the org.apache.camel.api.management.ManagedResource annotation definition. This seems appropriate to me; however, I would like verification from the camel riders that it will not cause unwanted side-effects. I can modify the patch to explicitly decorate leaf-node ResourceEndpoint classes with this annotation if there is an issue.
        Hide
        Claus Ibsen added a comment -

        Thanks for the patch.

        Show
        Claus Ibsen added a comment - Thanks for the patch.

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Rich Newcomb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development