I'm having some functionality where i need to use data from database with minimum hits to database. This data is not changed frequently so I'm using static ConcurrentHashMap to load data in them at time of loading app, and when new data is added/changed in database, that data is added/updated in respective Hashmap.
Now this was working fine as there was only one war so sharing was simple.
But now there are 3 different wars and one Ejb under single Ear and all them needs to share data concurrently.
so I need some way to keep this data at some place from where all wars and Ejb can access them without interfering.
I'm having JSP-Servlet applications with maven and server used is Jboss-7.1.1.Final.
Please suggest me best way to make this work.