I'm trying to integrate Grails 2.1.1 with Terracotta and Ehcache but I'm not getting any good results whatsoever.
Could anybody give me some advice in order to configure it? I'm a little bit confused.
I'm trying to integrate Grails 2.1.1 with Terracotta and Ehcache but I'm not getting any good results whatsoever.
Could anybody give me some advice in order to configure it? I'm a little bit confused.
Copyright © 2021 Jogjafile Inc.
Working on the subj now. First create
ehcache.xmlin yourgrails-app/confdirectory. It should look like that:Consider that terracottaConfig url should point to your actual host:port where
Terracotta serverlives. Make sure that your tarracotta cache node has<terracotta/>subnode (similarly to my processUrlCache entry).Now, put these 3 jars into your project lib directory:
ehcache-core-ee-2.6.2.jar,ehcache-terracotta-ee-2.6.2.jar,terracotta-toolkit-1.6-runtime-ee-5.2.0.jarActual version may differ (but it should be exactly the same as on your
terracottaserver, so my suggestion is to take those jars from server lib directories).Now, run your server (
start-tc-server.shorstart-tc-server.batdepending on Unix/Windows platform) and run your grails app. For the first start I would suggest you enabling debug logs in your Config.groovy file by puttinginto your
log4jsection.Let me know would it help you.