开发者

Managing Hibernate concurrency with remote web service

开发者 https://www.devze.com 2023-01-27 08:28 出处:网络
In Spring/Hibernate application. user may send more than on request with the same data to banking account. here is the case:

In Spring/Hibernate application. user may send more than on request with the same data to banking account. here is the case: 1st request reaches first, bank serve it, return OK, set local account data status OK; 2nd request reaches开发者_JS百科 second, bank serve it, return NOK, set local account data status NOK;

Now our local account data status is NOK, although its served well. Any suggestions for this problem.


A. Make sure the recieving web service queues the requests.

B. Perform not more than a maximum of two threads executions at a time at the web service side. This will provide you clues on why the status is set to NOK.

0

精彩评论

暂无评论...
验证码 换一张
取 消