5.9 EVENT DRIVEN TRACKING
An application can be interacted through three objects—the Servlet Context, Request and Session objects. Any change in state of an object is manifested as an event which is handled through listeners. In general, a listener is something that will alert the program, on the occurrence of an event. Conceptually, it is similar to the click of a button or moving the mouse as interjected by a VB program. In this context, there are a few events that are applicable. In the case of a session, it can be tracked through certain events in its lifetime. These events can be trapped and the callback function executed. It helps the system do specific tasks like session or request logging or setting up database operations during initialization ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access