- JBoss:Developer's Guide
- Elvadas Nono Woguia
- 221字
- 2021-07-02 18:37:29
Session replication demo
Once the application is deployed, perform the following steps:
- Open the application link from node13 http://localhost:8380/beosbank-web/.
- Fill the money transfer details and click on Next to select the payment options:
- Sender Country: France
- Receiver Country: Cameroon
- Amount to send: 100
- Sender: Noe Nono
- Receiver: Michele Bertille

- Click on the Next button to reach the Payment Infos tab:
- Fill the credit card number field with the value: 000-1111-2222 3333
- Click on the Next button.
- Try to open the application URL from the second node of the group (host2:node23) in another tab of your browser--http://localhost:8780/beosbank-web/:

You will automatically arrive on the first tab with data entered from the node13 session:
- Sender Country: France
- Receiver Country: Cameroon
- Amount to send: 100
- Sender: Noe Nono
- Receiver: Michele Bertille
The session you started on node13 session has been replicated on node23; if you shut down one node, the caller can still find this data from the other node:
[domain@127.0.0.1:9999 /] /host=host1/server=node13:stop
{"outcome" => "success",
"result" => "STOPPING"
}
http://localhost:8380/beosbank-web/ => KO
http://localhost:8780/beosbank-web/ => OK
With this configuration, in order avoid request failures, the caller has to implement a failover process to automatically switch to a running node when the current node goes down. This approach makes the client code become strongly coupled to the server instance URLs.
推薦閱讀
- INSTANT Mock Testing with PowerMock
- Visual C++程序設(shè)計(jì)學(xué)習(xí)筆記
- Oracle Exadata性能優(yōu)化
- 企業(yè)級Java EE架構(gòu)設(shè)計(jì)精深實(shí)踐
- 軟件架構(gòu)設(shè)計(jì):大型網(wǎng)站技術(shù)架構(gòu)與業(yè)務(wù)架構(gòu)融合之道
- Oracle BAM 11gR1 Handbook
- Python機(jī)器學(xué)習(xí)基礎(chǔ)教程
- Learning PHP 7
- QGIS Python Programming Cookbook(Second Edition)
- 軟件項(xiàng)目管理實(shí)用教程
- Python入門很輕松(微課超值版)
- JBoss:Developer's Guide
- 區(qū)塊鏈架構(gòu)之美:從比特幣、以太坊、超級賬本看區(qū)塊鏈架構(gòu)設(shè)計(jì)
- Learning Nessus for Penetration Testing
- Learning Jakarta Struts 1.2: a concise and practical tutorial