[jbossts-issues] [JBoss JIRA] (JBTM-2957) LRA specification: descriptions for start/end and LRA do not say which response codes are valid

Michael Musgrove (JIRA) issues at jboss.org
Fri May 18 03:38:00 EDT 2018


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

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


This JIRA related to the interoperability part of the spec that  defined the protocol in terms of REST endpoints and REST request/responses but interoperability has now been dropped so this JIRA is no longer applicable.

Note that that the @LRA annotation controls the starting and ending of an LRA so if asynchronous operations were supported the user would just need to mark his/her resource methods with @Asynchronous.

Also note that the LRAClient API start, close and cancel methods can throw  GenericLRAException which exposes a getStatusCode() method for reporting HTTP status codes.

> LRA specification: descriptions for start/end and LRA do not say which response codes are valid
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBTM-2957
>                 URL: https://issues.jboss.org/browse/JBTM-2957
>             Project: JBoss Transaction Manager
>          Issue Type: Enhancement
>          Components: LRA
>    Affects Versions: 5.7.1.Final
>            Reporter: Michael Musgrove
>            Assignee: Michael Musgrove
>             Fix For: 5.later
>
>
> The specification does not specify the HTTP response codes for starting and ending LRAs. The [relevant sections of the specification|https://github.com/eclipse/microprofile-sandbox/blob/master/proposals/0009-LRA/README.md#protocol-urls] are:
> > Performing a `POST` on ... creates an LRA.
> > Performing a `PUT` on .../close will trigger the successful completion of the LRA ...
> This means that it is vague as to whether asynchronous operations are supported, which they should be (since the target use case for LRAs is a microservice based environment).
> The proposal (and reference implementation) should be updated to include the response codes and it SHOULD include the ability to return "202 Accepted"



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jbossts-issues mailing list