We have a WebApplication which at start-up fetches all required information from Database and stores it in Java maps.
These maps are later used throughout in the application to fetch information required.
But in this approach whatever updates are done in database are not reflected till you restart the application.
So how can we automatically reload such classes / repositories in Java?
Thanks in advance.