[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: sam1234  XML
Profile for sam1234 -> Messages posted by sam1234 [9]
Author Message

We have to set the persistent i.e. <restartable> to true; This will store the values into disk.


I'm using trail version "bigmemory-max-4.1.3".
When I used both config & progamatticBased 'Cache Manager' and 'Cache' getting created & I can see the values in LocalHeap using 'TMC'. Could you please tell me how can I store the values in DISK (Distributed memory)? What configuration should I use?

Below is the progammatic configuration I use:

Configuration managerConfiguration = new Configuration()
.terracotta(new TerracottaClientConfiguration().url("localhost:9510"))
.cache(new CacheConfiguration()
.maxBytesLocalHeap(128, MemoryUnit.MEGABYTES)
.terracotta(new TerracottaConfiguration())

Below is the configuration base I use:

<cache name="bigMemory"
copyOnRead="true" eternal="true">
<terracottaConfig url="localhost:9510" rejoin="false"/>

Can you try with very basic cofig file like example below:

<?xml version="1.0" encoding="UTF-8" ?>
<tc:tc-config xmlns:tc="http://www.terracotta.org/config">

<server host="localhost" name="Server1">
<server host="localhost" name="Server2">


New to Terracotta, using Eclipse to execute the sample pgms. Got the below error:

Not sure how to map the license path using eclipse?

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" net.sf.ehcache.CacheException: Cannot instantiate enterprise features manager
at net.sf.ehcache.CacheManager.retrieveFeaturesManager(CacheManager.java:2120)
at net.sf.ehcache.CacheManager.configure(CacheManager.java:787)
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:476)
at net.sf.ehcache.CacheManager.init(CacheManager.java:392)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:370)
at HelloWorld.main(HelloWorld.java:10)
Caused by: org.terracotta.license.LicenseException: Terracotta license key is required for Enterprise capabilities. Please place terracotta-license.key in Terracotta installed directory or in resource path. You could also specify it through system property -Dcom.tc.productkey.path=/path/to/key
at org.terracotta.license.ehcache.LicenseManager.assertLicenseValid(LicenseManager.java:286)
at net.sf.ehcache.EnterpriseFeaturesManager.<init>(EnterpriseFeaturesManager.java:62)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at net.sf.ehcache.CacheManager.retrieveFeaturesManager(CacheManager.java:2112)
... 5 more


Can any one tell me what is maven repository.
And where we have Maven settings.xml file.


CacheManager manager = CacheManager.newInstance(

- Here we need to give the className.class which will solve the below issue. But were I should place the setting.xml file and not sure on Maven. What is this?


I'm new to Terracotta, don't know how to proceed in understanding and learning this new technology. Started with BigMemory-Max (now I'm into the sample code). Don't know how to use and see the code...

In the example1, I used the below import:

import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.Element;

Java Code: Got an error as this getClass method is not present in the above interface. Please help me on this...

CacheManager manager = CacheManager.newInstance(
try {
Cache bigMemory = manager.getCache("BigMemory");
// now do stuff with it...

} finally {
if (manager != null) manager.shutdown();

Hi Rakesh,

I didn't start the server which caused the issue. It got resolved Once I set the JAVA_HOME path.


I'm new to Terracotta.
To know the usage of Terracotta, I started browsing with BigMemory Max.

Started doing one by one java sample code as per Bigmemory Max - Documentation.

In "Adding Terracotta server Array" Topic. As per code when we run,
got the below error:

2013-05-08 11:39:02,327 INFO - Terracotta Enterprise 4.0.0, as of 20130301-064135 (Revision 25020-22359 by cruise@rh5vmo135.terracotta.lan from 4.0.0)
2013-05-08 11:39:04,999 WARN - We couldn't load configuration data from the server at 'localhost:9510'; retrying. (Error: Connection refused: connect.)

Your comments please.

Profile for sam1234 -> Messages posted by sam1234 [9]
Go to:   
Powered by JForum 2.1.7 © JForum Team