Comments (6)
With the @NestedLRA you can implement a specific scenario which is not possible when using only @lra(type=Type.NEW)
This is the current spec document (see https://github.com/eclipse/microprofile-lra/blob/master/spec/src/main/asciidoc/microprofile-lra-spec.adoc)
- If the nested LRA is closed but the outer LRA is cancelled then the
participants registered with the nested LRA will be told to compensate.- If the nested LRA is cancelled the outer LRA can be still closed.
So a NestedLRA
is not completely independent from the 'parent' LRA in which it runs. If the parent is cancelled, the compensate actions for the NestedLRA
are also called. But the NestedLRA
can be cancelled although the 'parent' LRA can just be successfully closed.
When you try to implement it using only the @LRA
, there is no possibility to the achieve the above scenario.
Also what happens if an LRA isn't active when @NestedLRA is called?
An exception should be thrown indicating this wrong usage status. But is isn't specified in the spec at the moment.
I have opened eclipse/microprofile-lra#117
from microprofile-sandbox.
How about adding the NESTED option to the Type attributed of the @LRA annotation, ie
NESTED, REQUIRED, REQUIRES_NEW, MANDATORY, SUPPORTS, NOT_SUPPORTED, NEVER
from microprofile-sandbox.
Wondering if this issue should be moved to https://github.com/eclipse/microprofile-lra and the LRA code removed from the sandbox?
from microprofile-sandbox.
+1 I'll do that as soon as @nmcl and the team have resolved this current question
from microprofile-sandbox.
@nmcl we have created issue #117 for this in the microprofile-lra repo. Do you mind if we close this one in preparation for removing LRA from the sandbox.
from microprofile-sandbox.
Moved to eclipse/microprofile-lra#117
from microprofile-sandbox.
Related Issues (18)
- Support JAR-based deployment without container HOT 8
- initial interfaces for microprofile concurrency
- Basic readme needed for sandbox concurrency spec
- Update sandbox concurrency spec with SPI and config
- concurrency: add SPI for context providers HOT 2
- concurrency: support per-application SPI providers HOT 4
- concurrency: support `ThreadContext` lookup without CDI HOT 4
- concurrency: support context propagator SPI HOT 4
- Create GraphQL README HOT 2
- Create the API annotations #GraphQL HOT 1
- Add "deprecationReason" in ... #GraphQL HOT 4
- Update spec draft according to change made (if approved by majority) #GraphQL HOT 3
- Annotation descriptions are inconsistent for LRA HOT 2
- Remove LRA files from the sandbox HOT 1
- Remove microprofile-sandbox/proposals/streams HOT 3
- More detail on MicroProfile Working Group Proposal HOT 2
- Define JWT bridge spec final name HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microprofile-sandbox.