You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2014/10/22 12:49:34 UTC

[jira] [Commented] (DELTASPIKE-745) cdictr-weld ContextControl.startContext doesn't properly start RequestScoped context

    [ https://issues.apache.org/jira/browse/DELTASPIKE-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14179800#comment-14179800 ] 

John D. Ament commented on DELTASPIKE-745:
------------------------------------------

hi mark!

Looks like based on your change, what you really want to do is call CdiContainer#createContextControl in your test.

https://github.com/apache/deltaspike/blob/master/deltaspike/cdictrl/impl-weld/src/main/java/org/apache/deltaspike/cdise/weld/WeldContainerControl.java#L134

Based on what you saw though, I'm wondering if we should change the OWB impl to always return the same one (since it's able to handle multiple threads).

> cdictr-weld ContextControl.startContext doesn't properly start RequestScoped context
> ------------------------------------------------------------------------------------
>
>                 Key: DELTASPIKE-745
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-745
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: CdiControl
>    Affects Versions: 1.0.3
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>            Priority: Critical
>             Fix For: 1.0.4
>
>
> I added a multi threading test into our TCK to check if ContextControl#startContext works properly even for new threads.
> But this blows up with a ContextNotActiveException deep inside Weld.
> I need some help from Weld guys to check what we do wrong.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)