[jbossts-issues] [JBoss JIRA] (JBTM-984) Support @Recover and @RecoverComplete annotations in the TXFramework

Paul Robinson (JIRA) jira-events at lists.jboss.org
Tue Aug 27 10:43:26 EDT 2013

     [ https://issues.jboss.org/browse/JBTM-984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Robinson resolved JBTM-984.

         Assignee: Paul Robinson
    Fix Version/s: 5.0.0.M5
                       (was: 5.0.0.Final)
       Resolution: Won't Fix

This seems too low-level. Recovery should be transparent to the user; which I think should be possible with the @CompensationScoped beans.
> Support @Recover and @RecoverComplete annotations in the TXFramework
> --------------------------------------------------------------------
>                 Key: JBTM-984
>                 URL: https://issues.jboss.org/browse/JBTM-984
>             Project: JBoss Transaction Manager
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: TXFramework
>            Reporter: Paul Robinson
>            Assignee: Paul Robinson
>              Labels: TXFramework
>             Fix For: 5.0.0.M5
> LifecycleHandler classes can use the METHOD annotations @Recover and @RecoverComplete to perform recovery. @Recover's method should be called for each recovered object before allowing lifecycle processing to proceed for participants recovered from the log. The second method should be called once all recovered participants have completed, allowing the LifecycleHandler class to clear up records for transactions which were not resolved by recovery processing.
> The target method for an @Recover annotation should have void type and take a single argument which should be type-compatible with the type of any saved object.
> The target method for an @RecoverComplete annotation should have void type and take no arguments.
> The recovery mechanism which needs to reload saved objects and presents them back to the service class during recovery processing as a precursor to actually running lifecycle callbacks for recovered transactions. This is done through the Control interface:
> {code}
> public interface TxControl
> {
>     public String storeObject(Serializable object);
>     public boolean deleteObject(String identifier);
> }
> {code}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

More information about the jbossts-issues mailing list