You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2008/09/27 06:29:44 UTC

[jira] Resolved: (CXF-1812) refactor the pause/resume mechanism in PhaseInterceptorChain

     [ https://issues.apache.org/jira/browse/CXF-1812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved CXF-1812.
-------------------------------

    Resolution: Won't Fix

Hi Dan,
Thanks for clarify this issue for me.
Regards
Freeman

> refactor the pause/resume mechanism in PhaseInterceptorChain
> ------------------------------------------------------------
>
>                 Key: CXF-1812
>                 URL: https://issues.apache.org/jira/browse/CXF-1812
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 2.0.9, 2.1.3, 2.2
>
>
> currently the pause/resume in PhaseInterceptorChain doesn't work.
> If invoke pause() in one interceptor, the PhaseInterceptorChain.doIntercept() will exit with COMPLETE status, which means we have no chance to resume the paused interceptorChain.
> We need use wait/notifyall mechanism to refactor it
> something like in PhaseInterceptorChain.doIntercept(), we add
>            while (state == State.PAUSED) {
>                 try {
>                     wait();
>                 } catch (InterruptedException e) {
>                 }
>             }
>             notifyAll();
> and the resume() method should be
> if (state == State.PAUSED) {
>             state = State.EXECUTING;
>             notifyAll();
>         }

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