Interceptors must support retry
-------------------------------

                 Key: OWB-570
                 URL: https://issues.apache.org/jira/browse/OWB-570
             Project: OpenWebBeans
          Issue Type: Bug
          Components: Interceptor and Decorators
    Affects Versions: 1.0.0
            Reporter: Marius Bogoevici
            Assignee: Gurkan Erdogdu


Noticed when using OWB 1.0, apparently the issue is not fixed in 1.1 by looking 
at the code.

In the Interceptors specification it is said that around-invoke and 
around-timeout interceptors are allowed to catch and suppress exceptions and 
recover by calling proceed(). Essentially this means that the state of the 
InvocationContext and associated interceptor chain must be restored to the 
state before the execution of the proceed() method, so that the following 
interceptors execute consistently upon recovery. 

However, the InvocationContext will not reset the state upon returning from the 
call (in the try block), which means that all the interceptors that have 
successfully executed in the initial call will be omitted on recovery.



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to