<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Use local ehCache when TSA is not available"]]></title>
		<link>http://forums.terracotta.org/forums/posts/list/16.page</link>
		<description><![CDATA[Latest messages posted in the topic "Use local ehCache when TSA is not available"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Use local ehCache when TSA is not available</title>
				<description><![CDATA[ Hi,
  I would like to do the following configuration :
- ehCache is used for local cache and TSA is used for L1 cache
- if TSA is not available (crash, server network error, etc), application will just use ehCache.
- when TSA server is accessible again, it should be used as L1 cache

Is this usage possible? Thank you for your help
Regards, 
  Matic
]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/7097.page#35338</guid>
				<link>http://forums.terracotta.org/forums/posts/list/7097.page#35338</link>
				<pubDate><![CDATA[Mon, 11 Jun 2012 07:43:58]]> GMT</pubDate>
				<author><![CDATA[ maticpet]]></author>
			</item>
			<item>
				<title>Re:Use local ehCache when TSA is not available</title>
				<description><![CDATA[ Hi,

I think nonstop-cache with localReads option and rejoin should fit your requirements: 
http://ehcache.org/documentation/configuration/non-stop-cache]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/7097.page#35340</guid>
				<link>http://forums.terracotta.org/forums/posts/list/7097.page#35340</link>
				<pubDate><![CDATA[Mon, 11 Jun 2012 13:39:49]]> GMT</pubDate>
				<author><![CDATA[ Jaza]]></author>
			</item>
			<item>
				<title>Use local ehCache when TSA is not available</title>
				<description><![CDATA[ yes, 'Jaza' is correct. Rejoin and nonstop-cache should fulfill your requirement.

Cheers!!]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/7097.page#35358</guid>
				<link>http://forums.terracotta.org/forums/posts/list/7097.page#35358</link>
				<pubDate><![CDATA[Wed, 13 Jun 2012 00:15:07]]> GMT</pubDate>
				<author><![CDATA[ gyan10]]></author>
			</item>
			<item>
				<title>Re:Use local ehCache when TSA is not available</title>
				<description><![CDATA[ gyan10 & Jaza,
  Thank you for reply. It works like it said in documentation. But now I have one more request. When TSA is not available I would like to have local cache as normal cache - read & write. As it said in docs and I test it, local cache become read-only. Can this be change?
Regards,
  Matic]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/7097.page#35368</guid>
				<link>http://forums.terracotta.org/forums/posts/list/7097.page#35368</link>
				<pubDate><![CDATA[Wed, 13 Jun 2012 14:29:04]]> GMT</pubDate>
				<author><![CDATA[ maticpet]]></author>
			</item>
			<item>
				<title>Re:Use local ehCache when TSA is not available</title>
				<description><![CDATA[ And my current ehcache.xml configuration :

<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="false"
	monitoring="autodetect"&gt;
	&lt;terracottaConfig url="localhost:9510" rejoin="true"/&gt;
	
	&lt;cache name="terracotta_test1" 
		maxEntriesLocalHeap="3"
		maxElementsOnDisk="7"
    	eternal="false"
    	timeToIdleSeconds="3600"
    	timeToLiveSeconds="1800"
    	overflowToDisk="false" statistics="true"&gt;    	
    	&lt;terracotta 
    		clustered="true" 
    		valueMode="serialization" 
    		consistency="eventual" 
    		storageStrategy="DCV2"&gt;
			&lt;nonstop immediateTimeout="true" timeoutMillis="1000"&gt;
				&lt;timeoutBehavior type="localReads"/&gt;	
			&lt;/nonstop&gt;
		&lt;/terracotta&gt;
    &lt;/cache&gt;
&lt;/ehcache&gt;
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/7097.page#35369</guid>
				<link>http://forums.terracotta.org/forums/posts/list/7097.page#35369</link>
				<pubDate><![CDATA[Wed, 13 Jun 2012 14:30:39]]> GMT</pubDate>
				<author><![CDATA[ maticpet]]></author>
			</item>
			<item>
				<title>Re:Use local ehCache when TSA is not available</title>
				<description><![CDATA[ Well, I didn't know that but from a consistency perspective this makes sense. What should the TSA do if it comes up again and two nodes have written a different value for the same key in the meantime?

Is this a special use case? Are you aware of TSA's HA features (mirroring) ?]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/list/7097.page#35418</guid>
				<link>http://forums.terracotta.org/forums/posts/list/7097.page#35418</link>
				<pubDate><![CDATA[Tue, 19 Jun 2012 10:19:43]]> GMT</pubDate>
				<author><![CDATA[ Jaza]]></author>
			</item>
	</channel>
</rss>