A simple example demonstrating the issue.
1. go to http://127.0.0.1:8080/jboss-as-helloworld/Welcome
2. open the "Shop" link in the background 3. open the "DisplayCart" link in the background a second after 2.
4. refresh the Shop page
Notice it now says
"cart2 Suggestion for cart1"
which means the application is in an unexpected state, as it expects the SuggestionService to work with the same cartId as the current shopping cart.
A simple example demonstrating the issue.
1. go to http://127.0.0.1:8080/jboss-as-helloworld/Welcome
2. open the "Shop" link in the background
3. open the "DisplayCart" link in the background a second after 2.
4. refresh the Shop page
Notice it now says
"cart2 Suggestion for cart1"
which means the application is in an unexpected state, as it expects the SuggestionService to work with the same cartId as the current shopping cart.