[jbossts-issues] [JBoss JIRA] (JBTM-2945) Track SRAs that are started in the context of an LRA

Michael Musgrove (Jira) issues at jboss.org
Fri Oct 5 12:45:00 EDT 2018


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

Michael Musgrove closed JBTM-2945.
----------------------------------
    Resolution: Rejected


The support for Short Running Actions (aka "annotations for REST-AT") was removed from the proposed Eclipse LRA spec.

The REST-AT annotations are probably still useful so it may be a good idea to incorporate them into the REST-AT module.

> Track SRAs that are started in the context of an LRA
> ----------------------------------------------------
>
>                 Key: JBTM-2945
>                 URL: https://issues.jboss.org/browse/JBTM-2945
>             Project: JBoss Transaction Manager
>          Issue Type: Enhancement
>          Components: LRA
>    Affects Versions: 5.7.0.Final
>            Reporter: Michael Musgrove
>            Assignee: Michael Musgrove
>            Priority: Major
>             Fix For: 6.later
>
>
> Often an LRA is built up from a number of individual actions performed by the
> participants enlisted with the LRA. These participants may use the ACID
> guarantees that an SRA provides in order to fulfil the requisite compensatory
> and completion actions when the LRA is terminated. To support this requirement
> when an SRA is started in the context of an LRA (either by annotating a method
> with both the @LRA and @SRA annotations or by starting an SRA via the client
> API when an LRA is already active) then the SRA will be automatically
> associated with the LRA. The following interface is provided for querying which
> LRAs and SRAs are associated with each other (in a one to many relationship):
> {code}
> public interface LRAToSRA {
>   /**
>    * return all the SRAs running in the context of the given LRA
>    */
>   List<SRA> getAssociatedSRAs(URL lraId};
>   /**
>    * see if an LRA is associated with the give SRA
>    */
>   URL getAssociatedLRA(URL sraId);
> }
> {code}
> Questions:
>    - should @Compensate and @Complete block until all associated SRAs have finished
>    - when an LRA is closed or cancelled should any active SRAs be automatically be committed or rolled back.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jbossts-issues mailing list