开发者

Managing Hibernate concurrency with remote web service

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜