Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- is related to
-
CAMEL-7759 Using the TCCL as the default value of ApplicationContextClassLoader in DefaultCamelContext
- Resolved