[
https://issues.apache.org/jira/browse/CAMEL-5660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465493#comment-13465493
]
Claus Ibsen commented on CAMEL-5660:
------------------------------------
Singleton beans is auto closed, so it would only apply to prototype scoped
which wont make much sense.
> Add option to @Consume, @Produce, et all to let them tie lifecycle to
> CamelContext
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-5660
> URL: https://issues.apache.org/jira/browse/CAMEL-5660
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.11.0
>
>
> When using these annotations, you are in control of the lifecycle. But if you
> use a @Consume on a method its harder to stop the consumer.
> We should offer an option on the annotation to tie it to the lifecycle of its
> CamelContext, so when the CamelContext is shutdown, they are shutdown as well.
> The option should allow to turn this on|off.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira