[
https://issues.apache.org/jira/browse/OWB-363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12861887#action_12861887
]
Gurkan Erdogdu commented on OWB-363:
------------------------------------
YING, you are right! I updated code to look saved ApplicationContext
currentApplicationContexts before looking ThreadLocal. Also I reset thread
local application context while destroying request.
> Intermittent bug with ApplicationScope disposers not being called
> -----------------------------------------------------------------
>
> Key: OWB-363
> URL: https://issues.apache.org/jira/browse/OWB-363
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Context and Scopes
> Affects Versions: M4
> Reporter: Joe Bergmark
> Assignee: Gurkan Erdogdu
> Priority: Minor
> Fix For: 1.0.0
>
>
> While testing an application have seen an issue where disposers for
> application scoped producer methods are not called. Took a quick peek at the
> WebContextService, and I suspect the ThreadLocal may not be correct for the
> thread that is handling the application stop.
> It seems to me that we already have a 1:1 mapping of WebContextService
> (loaded based on the classloader by WebBeansFinder) to the application, so we
> could probably make the ApplicationContext field non-static and
> non-threadlocal.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.