As for "everywhere", you don't seem to like the session variable idea. Is that because the map should be accessible to all users, whereas a session applies to only a single user? If so then adding it to the application context would be better. There's only one application context for a web app, and it's a instance of the type ServletContext. Despite the type name, a ServletContext doesn't apply to any particular servlet. Here's a tutorial on how to work with the application context.
However if "everywhere" is supposed to include more than one web app, your way ahead is more complicated. So let us know if that's the case and we can go into that a bit more.
posted 1 year ago
@paul - here "everywhere" refers to for all users who ever login to my application able to access on all pages.