We will now create and configure a Listener and a Servlet respectively inside our project. Finally, we will initiate our server and test the service by executing our report inside a web browser.
To be able to function efficiently, PRD's API requires a process of initialization. This process will load libraries and perform tasks related to the setup of the execution environment needed to process reports rapidly. We can perform this initialization using a certain type of web components, called Listeners.
Listeners are used to process events that are divided into categories and are generated by the server at various levels. In our case, we are interested in listening to events at a container level, particularly at the time at which the container is initiated. This is done so that the users do not have to pay the price of initializing components, thus improving the users' experience in a noticeable way.
Next, we will create a Listener inside our project...