JBoss.orgCommunity Documentation

Chapter 7. Queue Sessions

7.1. Scopes
7.1.1. Local Scope
7.1.2. Session Scopes
7.2. Lifecycle

The ErraiBus maintains it's own seperate session management on-top of the regular HTTP session management. While the queue sessions are tied to, and dependant on HTTP sessions for the most part (meaning they die when HTTP sessions die), they provide extra layers of session tracking to make dealing with complex applications built on Errai easier.

One of the things Errai offers is the concept of session and local scopes.

The lifescyle of a session is bound by the underlying HTTP session. It is also bound by activity thresholds. Clients are required to send heartbeat messages every once in a while to maintain their sessions with the server. If a heartbeat message is not received after a certain period of time, the session is terminated and any resources are deallocated.