This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LocalTestContext { | |
private static final LocalTestContext INSTANCE = new LocalTestContext(); | |
private final ThreadLocal<Map<String, String>> localTestData = ThreadLocal.withInitial(HashMap::new); | |
private LocalTestContext() { | |
} | |
public void addConfigValue(String key, String value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example has 3 components | |
- A client application which can be anything. It calls 2 endpoints to process a User action. | |
- The client application retrieves the actual URLs of the endpoint from a service discocvery component just before calling them as they can be located at any URL. | |
- A service A which is the first step in the transaction | |
- A service B which is the second step. | |
What happens when the ServiceB cancels the LRA but service A is crashed at that moment and restored at a different URL. | |
How is the cancelStepA() called eventually? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="default" pui-tree="nodeSelect" > | |
<div pui-treenode="Documents" id="documents"> | |
<div pui-treenode="Work" id="work"> | |
<div pui-treenode="Expenses.doc" id="expenses" ></div> | |
<div pui-treenode="Resume.doc" id="resume"></div> | |
</div> | |
<div pui-treenode="Home" > | |
<div pui-treenode="Invoices.txt" id="invoices"></div> | |
</div> | |
</div> |