Romain Manni-Bucau created TOMEE-2059:
-----------------------------------------
Summary: [CDI] don't release normal scoped beans?
Key: TOMEE-2059
URL: https://issues.apache.org/jira/browse/TOMEE-2059
Project: TomEE
Issue Type: New Feature
Reporter: Romain Manni-Bucau
Working on CXF-7403 I wonder if createCreationalContext shouldn't also test if
the bean is normal scoped or not:
{code}
if (!(bean instanceof DefaultApplicationBean) &&
!beanManager.isNormalScope(bean.getScope())
{code}
For normal scoped beans the container/libraries will handle the releasing of
the beans so the creational context should not need to be released manually.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)