Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i work with spring core with posting data to third party app but some times data go to third party app duplicate with some data different for example send invoice with customer x go to third party app with customer y in load and two invoice make in same time so i think it due to race condition or critical section entity

What I have tried:

i tried to synchronize customer entity in parent class that every entity of kind post send to it
Posted
Updated 7-Aug-19 0:48am
Comments
Richard MacCutchan 7-Aug-19 7:41am    
As Patrice has noted, no one here can begin to guess what your code may be doing. You need to gather more diagnostic information and provide some proper details before we can help you.

1 solution

Quote:
so i think it due to race condition or critical section entity

Never think, make sure!
Without seeing your code, it is difficult to know if you did it wrong or not.

Advice: Change your code to log each burst of data sent to third party app. At least you will know who is wrong.
 
Share this answer
 
v2
Comments
Mahmoud_Gamal 7-Aug-19 6:58am    
ok but this issue occur only when two invoice posting at same time and it swapped with other invoice data for this reason i suggest that
Patrice T 7-Aug-19 7:02am    
Without seeing your code, it is difficult to know if you did it wrong or not.
Richard MacCutchan 7-Aug-19 7:39am    
Actually, it's impossible to know, or even guess.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900