You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Gurkan Erdogdu (JIRA)" <ji...@apache.org> on 2010/10/05 16:39:35 UTC

[jira] Commented: (OWB-467) Move init/destroy of conversation from phase listener to servlet filter

    [ https://issues.apache.org/jira/browse/OWB-467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12917997#action_12917997 ] 

Gurkan Erdogdu commented on OWB-467:
------------------------------------

Filter is not used for conversations, it is there for legacy reasons. Therefore solution using filter is not a good idea.

> Move init/destroy of conversation from phase listener to servlet filter
> -----------------------------------------------------------------------
>
>                 Key: OWB-467
>                 URL: https://issues.apache.org/jira/browse/OWB-467
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Context and Scopes
>    Affects Versions: 1.0.0-alpha-2
>         Environment: OWB trunk
>            Reporter: Martin Kočí
>            Assignee: Gurkan Erdogdu
>            Priority: Critical
>
> OWB code for init/destroy conversation is in a phase listener. It is not safe: see http://markmail.org/message/oz7f7jnchwvrcw65. This phase listener approach also does not allow conversation for non faces request, but CDI spec says: "The conversation scope is active: during all standard lifecycle phases of any JSF faces or non-faces request". So this issue is critical for two reasons:
> 1) it does not allow conversation for non-faces request (specification says it must)
> 2) it can lock conversation forever (or only for timeout period?) and exhaust memory with locked conversations
> Proposed solution: move code to servlet filter as discussed at http://markmail.org/message/oz7f7jnchwvrcw65

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.