Consider a web application, constructed from the Front Controller design pattern, included the strategy-pattern based actions, .jsp pages, javabeans and database connection, like the picture below:
How do I assign responsibilities in my code, for loading, initializing and updating applicationscoped data?
I have read a lot on this subject, but it is hard to find what I am looking for, between all of the framework-specific-, and similar, but yet so different Q&A's.
Unlike i.e. Android, a "java web app lifecycle"-search on google, returns hits on the process of developing a web app, not running it. I am looking for a basic understanding of the life cycle, and responsibility management in web-applications.
I do already have a provider-class that is able to connect, get and sort data into java objects, from my database. Supposed that this is a best practice solution, where in the web-app lifecycle/code should i refer to/create this provider, and store the data for applicationwide use?