Configuration of Ehcache (with Spring Caching) in a JBoss domain mode server (2 App servers)

208 views
Skip to first unread message

dev.4....@gmail.com

unread,
Dec 1, 2017, 7:08:53 AM12/1/17
to ehcache-users
  1. What version of Ehcache you are currently using; 2.10.2
  2. Paste the configuration for the Cache/CacheManager you have an issue with;
  3. Add any name and version of other library or framework you use Ehcache with (e.g. Hibernate); Spring 4.1.5.RELEASE
  4. Providing JDK and OS versions maybe useful as well. JDK7 and linux system

My requirement is Configuring Spring Caching based Ehcache on a JBoss domain mode server (2 App servers, each having 2 sub servers)

Thank you,
Vasudev

Louis Jacomet

unread,
Dec 1, 2017, 7:26:32 AM12/1/17
to ehcach...@googlegroups.com
Hi Vasudev,

I am sorry but this is not a free consulting resource where developers help you resolve assignments.

Your question has no indication of what you tried, what are the problems encountered, it only states an assignment.

There is nothing that can be done for you in this context.

Regards,
Louis

--
You received this message because you are subscribed to the Google Groups "ehcache-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ehcache-user...@googlegroups.com.
To post to this group, send email to ehcach...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ehcache-users/bdcf6057-36cf-44b3-93b2-22057a6d08cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dev.4....@gmail.com

unread,
Dec 3, 2017, 1:13:23 AM12/3/17
to ehcache-users
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
Spring_Ehcache_Replication_RMI_Code.txt
Reply all
Reply to author
Forward
0 new messages