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

Context should be started with defined TCCL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.15.0
    • camel-core
    • None
    • Unknown

    Description

      During CamelContext.start() we may call into various 3rd party modules that rely on resource discovery through TCCL. Therefore, we should provide a well defined value for TCCL during context start.

      In the WildFly integration layer I attempted to do this using events. This approach is flawed however because there is no guarantee of event delivery. Conceptually, the requirement for a certain TCCL by 3rd party should not leak into client code. Instead, camel should be dealing with these TCCL requirements and provide client code a way to defined the ClassLoader associated with the context. the role of which is the ApplicationClassLoader.

      I therefore propose setting the TCCL to the ApplicationClassLoader (if there is one) just before we call into doStart()

      Attachments

        Issue Links

          Activity

            People

              njiang Willem Jiang
              tdiesler Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: