Using a session scope bean to preserve session-wide information
Information stored in the DBMS can be preserved for the duration of the user session by utilizing ADF business components to retrieve it, and a session scope managed bean to preserve it throughout the user session. Using this technique allows us to access session-wide information from any page in our application, without the need to create specific bindings for it in each page.
This recipe demonstrates how to access and preserve session-wide information by implementing the following use case. For each employee authenticated to access the application, its specific information will be maintained by a session-scoped managed bean.
Getting ready
You will need to create a skeleton Fusion Web Application (ADF) workspace before you proceed with this recipe. For this, we will use the MainApplication
workspace that was developed in Breaking up the application in multiple workspaces, Chapter 1,Pre-requisites to Success: ADF Project Setup...