tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <>
Subject [jira] [Created] (TOMEE-2059) [CDI] don't release normal scoped beans?
Date Fri, 09 Jun 2017 12:36:18 GMT
Romain Manni-Bucau created TOMEE-2059:

             Summary: [CDI] don't release normal scoped beans?
                 Key: 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:

if (!(bean instanceof DefaultApplicationBean) && !beanManager.isNormalScope(bean.getScope())

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

View raw message