[ https://issues.apache.org/jira/browse/CAMEL-12935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16717214#comment-16717214 ]
ASF GitHub Bot commented on CAMEL-12935: ---------------------------------------- lburgazzoli edited a comment on issue #2663: CAMEL-12935:Camel Context restarts in Blueprint Test if isCreateCamel… URL: https://github.com/apache/camel/pull/2663#issuecomment-446210783 I have to admit that I do not remember all the details but one of the critical aspect when using containers is to clean them up once the test are done and the used of static bits as well as junit annotation like `@AfterClass` makes it not so easy and error prone so what I have implemented is a ref-counter alike solution that cleans-up things when it gets decremented to 0 which mimics the old behaviour but with better control. I did some investigation (AFAIR) about when setting up a camel context per class was used in blueprint and I didn't spot any place... but I could be wrong of course. I guess there may be some regression in the life-cycle of blueprint stuff so I think it would be better to understand the reason instead of reverting to the previous code as it would make the test support behave differently depending of the target runtime. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Camel Context restarts in Blueprint Test if isCreateCamelContextPerClass is > set to true > --------------------------------------------------------------------------------------- > > Key: CAMEL-12935 > URL: https://issues.apache.org/jira/browse/CAMEL-12935 > Project: Camel > Issue Type: Improvement > Components: camel-test > Affects Versions: 2.22.1 > Reporter: Florian Wermelskirchen > Assignee: Ramu > Priority: Minor > > Camel Context restarts in Blueprint Test even if isCreateCamelContextPerClass > is set to true -- This message was sent by Atlassian JIRA (v7.6.3#76005)