Details
-
Type: New Feature
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0-Alpha3
-
Fix Version/s: None
-
Component/s: JavaScript Client
-
Labels:None
-
Environment:ICEpush, ICEfaces
Description
If a user has multiple browser windows open in the same Ajax Push application (such as ICEfaces auction demo) it is possible that the Ajax Push notifications will cause the browser to issue concurrent requests to the server. This is not normally possible for a user, so many server-side frameworks are not thread-safe in these conditions (most frameworks are thread-safe against concurrent requests for different users).
In particular, JSF is not thread-safe under concurrent requests from the same user.
To guard against this, ICEfaces notifications can be queued.
In particular, JSF is not thread-safe under concurrent requests from the same user.
To guard against this, ICEfaces notifications can be queued.
Push-driven updates and user-driven updates in the same window will be automatically queued by JSF, the conflict occurs between push-driven or user-driven updates in distinct windows.
Another way to implement this is to provide a token-passing API that provides exclusivity to the caller.