Bob Browning created CAMEL-7644:
-----------------------------------

             Summary: Scala camel DSL creates numerous DefaultCamelContext 
instances
                 Key: CAMEL-7644
                 URL: https://issues.apache.org/jira/browse/CAMEL-7644
             Project: Camel
          Issue Type: Bug
          Components: camel-scala
    Affects Versions: 2.13.1
            Reporter: Bob Browning


Since the camel DSL is invoked prior to 
`.addRoutesToCamelContext(CamelContext)` being invoked there is no camel 
context set on the delegate java RouteBuilder which causes it to create a new 
context when the first dsl method is invoked.

With the implementation of CAMEL-7327 introduced in 2.13.1 which stores created 
camel contexts in a set in `Container.Instance#CONTEXT`; this causes instances 
of DefaultCamelContext to be leaked, they are never removed from the static 
set. This is especially aparrent during unit testing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to