Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.5.0
-
None
Description
Currently we rely on the user to define the configuration option in OpenWebBeansConfiguration
APPLICATION_SUPPORTS_CONVERSATION = "org.apache.webbeans.application.supportsConversation";
This is by default disabled in owb-impl (core) and gets enabled by adding the web or jsf plugins.
We could improve this by not only allowing true or false but also with an auto mode.
In this mode the BeanManager can walk through all registered beans and check whether there is a single @ConversationScoped bean. In that case we will automagically enable CDI conversations, otherwise OWB will dynamically disable conversation support and don't need to do all kinds of work in WebContextsService for example.