Hi Louis,
Thank you for the reply.
Let me just elaborate the try that I did. The goal that I aim to achieve.
My need is to implement a Caching mechanism so that I could persist some frequently used data on my App server instead of repeatedly hitting the database for the same data.
For this I chose Spring caching with Ehcache.
Code implementation details of Spring Ehcache by me is attached in the file (file contents : Controller, Repo class, ehcache.xml)
This code in the attachment works perfectly fine as expected on my Local Windows system (JBoss is in Standalone mode in my system), where as this code does not work on the Linux systems where JBoss is in Domain mode which has got 2 sub servers. Sometimes I get expected data and sometimes old data only is returned. From investigation I got to know that data is refreshed on only one Sub-server. I want to know how caching is shared/replicated between the 2 sub-servers and 2 appservers
A small brief about the JBoss Domain mode server is :
A domain mode JBoss server is kind of Clustering of servers. My architecture is like I have a domain mode Jboss server of 2 App servers(physical), each containing again 2 sub-servers(logical). And my WAR file is deployed using the Server-group context.
Please revert if you have further queries.
Thank you in advance,
Vasudev