<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Coherence Key HOWTO</title>
	<atom:link href="https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/feed/" rel="self" type="application/rss+xml" />
	<link>https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/</link>
	<description>Thoughts on software development and other stuff</description>
	<lastBuildDate>Sat, 20 Jul 2013 01:54:41 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>By: Patrick Peralta</title>
		<link>https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/comment-page-1/#comment-4522</link>
		<dc:creator><![CDATA[Patrick Peralta]]></dc:creator>
		<pubDate>Wed, 27 Mar 2013 18:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://blackbeanbag.net/wp/?p=409#comment-4522</guid>
		<description><![CDATA[The console is converting your numbers to int. Try including an extra space in front of your number to make it a String; i.e. &lt;code&gt;get  5&lt;/code&gt; instead of &lt;code&gt;get 5&lt;/code&gt;.]]></description>
		<content:encoded><![CDATA[<p>The console is converting your numbers to int. Try including an extra space in front of your number to make it a String; i.e. <code>get  5</code> instead of <code>get 5</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anu</title>
		<link>https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/comment-page-1/#comment-4521</link>
		<dc:creator><![CDATA[Anu]]></dc:creator>
		<pubDate>Wed, 27 Mar 2013 02:34:32 +0000</pubDate>
		<guid isPermaLink="false">http://blackbeanbag.net/wp/?p=409#comment-4521</guid>
		<description><![CDATA[I tested with some sample strings what I found was

When the key is of type string and it contains alphabets or alphanumeric characters, the values are getting retrieved correctly.

But if the key is of type String and the value is only numbers the values are not getting retrieved.

What is the reason for this?]]></description>
		<content:encoded><![CDATA[<p>I tested with some sample strings what I found was</p>
<p>When the key is of type string and it contains alphabets or alphanumeric characters, the values are getting retrieved correctly.</p>
<p>But if the key is of type String and the value is only numbers the values are not getting retrieved.</p>
<p>What is the reason for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anu</title>
		<link>https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/comment-page-1/#comment-4520</link>
		<dc:creator><![CDATA[Anu]]></dc:creator>
		<pubDate>Wed, 27 Mar 2013 01:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://blackbeanbag.net/wp/?p=409#comment-4520</guid>
		<description><![CDATA[Map (ele): list
2222222 = 
200:20:2:2:1:1:Thu Feb 02 00:00:00 2012:2:Thu Feb 02 00:00:00 2012:Thu Feb 02 00:00:00 2012

GC2 = 
200:20:2:2:1:1:Thu Feb 02 00:00:00 2012:2:Thu Feb 02 00:00:00 2012:Thu Feb 02 00:00:00 2012

Map (ele): get GC2
 200:20:2:2:1:1:Thu Feb 02 00:00:00 2012:2:Thu Feb 02 00:00:00 2012:Thu Feb 02 00:00:00 2012

Map (ele): get 2222222
null

I have included the key in the equals() and hashcode() method. please tell me what is going wrong]]></description>
		<content:encoded><![CDATA[<p>Map (ele): list<br />
2222222 =<br />
200:20:2:2:1:1:Thu Feb 02 00:00:00 2012:2:Thu Feb 02 00:00:00 2012:Thu Feb 02 00:00:00 2012</p>
<p>GC2 =<br />
200:20:2:2:1:1:Thu Feb 02 00:00:00 2012:2:Thu Feb 02 00:00:00 2012:Thu Feb 02 00:00:00 2012</p>
<p>Map (ele): get GC2<br />
 200:20:2:2:1:1:Thu Feb 02 00:00:00 2012:2:Thu Feb 02 00:00:00 2012:Thu Feb 02 00:00:00 2012</p>
<p>Map (ele): get 2222222<br />
null</p>
<p>I have included the key in the equals() and hashcode() method. please tell me what is going wrong</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Peralta</title>
		<link>https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/comment-page-1/#comment-4441</link>
		<dc:creator><![CDATA[Patrick Peralta]]></dc:creator>
		<pubDate>Tue, 24 Apr 2012 19:47:31 +0000</pubDate>
		<guid isPermaLink="false">http://blackbeanbag.net/wp/?p=409#comment-4441</guid>
		<description><![CDATA[This is correct Ashish - the associated key does not need to be physically present in the cache in order for affinity to work for a given entry.]]></description>
		<content:encoded><![CDATA[<p>This is correct Ashish &#8211; the associated key does not need to be physically present in the cache in order for affinity to work for a given entry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish Garg</title>
		<link>https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/comment-page-1/#comment-4440</link>
		<dc:creator><![CDATA[Ashish Garg]]></dc:creator>
		<pubDate>Tue, 24 Apr 2012 18:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://blackbeanbag.net/wp/?p=409#comment-4440</guid>
		<description><![CDATA[On the similar question related to affinity just wanted to clear one doubt. The key affinity is based on the hash of the parent key not whether the parent key is present in the cache at that time.

Just to add an example let say Key B is associated with Key A. Now let say we had a parallel cache loader which first loads the Key B. So Key will be stored in the partition based on associated key details. Also when Key A is loaded it will fall in the same partition as that of its associated key B.]]></description>
		<content:encoded><![CDATA[<p>On the similar question related to affinity just wanted to clear one doubt. The key affinity is based on the hash of the parent key not whether the parent key is present in the cache at that time.</p>
<p>Just to add an example let say Key B is associated with Key A. Now let say we had a parallel cache loader which first loads the Key B. So Key will be stored in the partition based on associated key details. Also when Key A is loaded it will fall in the same partition as that of its associated key B.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Peralta</title>
		<link>https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/comment-page-1/#comment-4438</link>
		<dc:creator><![CDATA[Patrick Peralta]]></dc:creator>
		<pubDate>Tue, 10 Apr 2012 15:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://blackbeanbag.net/wp/?p=409#comment-4438</guid>
		<description><![CDATA[Great question! We do deserialize on the server to identify the association information. However, in 3.7.1 we added a feature to identify partition information in the binary itself so that .NET and C++ applications no longer require a corresponding Java key on the server side in order to use affinity. See http://docs.oracle.com/cd/E24290_01/coh.371/e22839/net_intobjects.htm under section &quot;Deferring the Key Association Check&quot; for details.]]></description>
		<content:encoded><![CDATA[<p>Great question! We do deserialize on the server to identify the association information. However, in 3.7.1 we added a feature to identify partition information in the binary itself so that .NET and C++ applications no longer require a corresponding Java key on the server side in order to use affinity. See <a href="http://docs.oracle.com/cd/E24290_01/coh.371/e22839/net_intobjects.htm" rel="nofollow">http://docs.oracle.com/cd/E24290_01/coh.371/e22839/net_intobjects.htm</a> under section &#8220;Deferring the Key Association Check&#8221; for details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashish Garg</title>
		<link>https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/comment-page-1/#comment-4437</link>
		<dc:creator><![CDATA[Ashish Garg]]></dc:creator>
		<pubDate>Tue, 10 Apr 2012 14:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://blackbeanbag.net/wp/?p=409#comment-4437</guid>
		<description><![CDATA[Very interesting post, how does this work in case of key affinity.  As we need to de serialize the key to identify the association information.]]></description>
		<content:encoded><![CDATA[<p>Very interesting post, how does this work in case of key affinity.  As we need to de serialize the key to identify the association information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Peralta</title>
		<link>https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/comment-page-1/#comment-4267</link>
		<dc:creator><![CDATA[Patrick Peralta]]></dc:creator>
		<pubDate>Tue, 31 May 2011 02:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://blackbeanbag.net/wp/?p=409#comment-4267</guid>
		<description><![CDATA[RJW: this is absolutely correct!  It doesn&#039;t happen too often but I have seen it before.  It can be very confusing if you don&#039;t understand how Java serialization works internally.]]></description>
		<content:encoded><![CDATA[<p>RJW: this is absolutely correct!  It doesn&#8217;t happen too often but I have seen it before.  It can be very confusing if you don&#8217;t understand how Java serialization works internally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rjw</title>
		<link>https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/comment-page-1/#comment-4265</link>
		<dc:creator><![CDATA[Rjw]]></dc:creator>
		<pubDate>Mon, 30 May 2011 10:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://blackbeanbag.net/wp/?p=409#comment-4265</guid>
		<description><![CDATA[One easy way to screw this up is to use java serialization or any serialisation that uses stream back references for reference equals objects. Because then your serialised form is dependent on whether your contents are interned. Eg a simple pair of integer (1,1) could end up having an inconsistent binary form if the 1 objects are reference equals. So, use EL or POF for keys, and no tricks.]]></description>
		<content:encoded><![CDATA[<p>One easy way to screw this up is to use java serialization or any serialisation that uses stream back references for reference equals objects. Because then your serialised form is dependent on whether your contents are interned. Eg a simple pair of integer (1,1) could end up having an inconsistent binary form if the 1 objects are reference equals. So, use EL or POF for keys, and no tricks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashwin Jayaprakash</title>
		<link>https://blackbeanbag.net/wp/2010/06/06/coherence-key-howto/comment-page-1/#comment-4263</link>
		<dc:creator><![CDATA[Ashwin Jayaprakash]]></dc:creator>
		<pubDate>Tue, 10 May 2011 20:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://blackbeanbag.net/wp/?p=409#comment-4263</guid>
		<description><![CDATA[This is a pretty common problem. I too had written about something similar a while ago - http://javaforu.blogspot.com/2009/12/primary-key-object-under-appreciated.html]]></description>
		<content:encoded><![CDATA[<p>This is a pretty common problem. I too had written about something similar a while ago &#8211; <a href="http://javaforu.blogspot.com/2009/12/primary-key-object-under-appreciated.html" rel="nofollow">http://javaforu.blogspot.com/2009/12/primary-key-object-under-appreciated.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
