I have figured out a solution to my use case:<br><br>I setup a listener on the ViewChanged event, and if a particular node becomes coordinator, then it holds the singleton (usually just a service running as a thread).<br><br>
Sorry for creating confusion :)<br><br>Tristan<br><br><div class="gmail_quote">On Thu, Oct 21, 2010 at 11:34, Tristan Tarrant <span dir="ltr">&lt;<a href="mailto:tristan.tarrant@gmail.com">tristan.tarrant@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote"><div class="im">On Thu, Oct 21, 2010 at 11:08, Galder ZamarreƱo <span dir="ltr">&lt;<a href="mailto:galder@redhat.com" target="_blank">galder@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><br>
On Oct 21, 2010, at 9:42 AM, Tristan Tarrant wrote:<br>
<br>
&gt; I have browsed quickly through the Infinispan docs, but I haven&#39;t found anything that would help me with what I need.<br>
&gt; In the past I have used JBoss&#39; feature for deploying cluster-wide singletons, but obviously this is app-server-dependent. Is it possible to use Infinispan to implement the same thing ?<br>
<br>
</div>Hmmm, Infinispan is not an app server and hence does not do deployments, so not sure what you refer to.<br><br></blockquote><div><br></div></div><div>I didn&#39;t explain myself properly. I don&#39;t want Infinispan to implement cluster singletons for me, but I would like to leverage Infinispan&#39;s features to implement the singleton myself. For example by binding a key in the cache to its owner (the first node to put() the key in the cache). If the owner &quot;disappears&quot;, someone else might take ownership of that key.</div>

<div><br></div><div>This can be done with JGroups, but I wanted something a bit more &quot;abstracted&quot; from the transport&#39;s implementation.</div><div><br></div><font color="#888888"><div>Tristan</div></font></div>

</blockquote></div><br>