[
https://issues.apache.org/jira/browse/OWB-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897459#action_12897459
]
Mark Struberg commented on OWB-436:
-----------------------------------
I've commented a unit test and a quick fix solution for our problem.
This isn't yet perfect, so I'll create a follow up Jira for improving the
handling.
> AbstractContext bean instance creation is not thread safe
> ---------------------------------------------------------
>
> Key: OWB-436
> URL: https://issues.apache.org/jira/browse/OWB-436
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Context and Scopes
> Affects Versions: 1.0.0-alpha-1
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Priority: Blocker
> Fix For: 1.0.0-alpha-2
>
>
> Our code which triggers the creation of contextual instances in
> AbstractContext is not thread safe.
> This first did hit me while starting a Web Server while running under full
> request load. This did lead to 40 parallel threads trying to startup my
> @ApplicationScoped services. A few of those services do some logic in
> @PostConstruct and therefore take some time, which resulted in creating those
> @ApplicationScoped beans multiple times!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.