<div dir="ltr">Hi Bela,<div><br></div><div>I said the idea is to limit the configuration stuff to ISPN. Before this change, the clustering of the application required JMS queue to be clustered, along with Quartz. The JMS Queue was misused to trigger a cache invalidation, so I removed this complexity by simply replicate the cache.</div>
<div><br></div><div>Once this was done, I realized, I could misused a bit ISPN to also remove the need for Quartz sync. I&#39;m pretty sure ISPN is not the best tool for the work (task sync) but it is the best to reduce the complexity (in this use case) :)</div>
<div><br></div><div>That being said, this task distribution feature of JGroups is pretty awesome, I&#39;m quite happy to have heard about it :)</div><div><br></div><div>PS: I though of you last Tuesday - I, again, went to a customer and remove cluster from their EAP configuration :) </div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 26 March 2014 17:16, Bela Ban <span dir="ltr">&lt;<a href="mailto:bban@redhat.com" target="_blank">bban@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Romain,<br>
<br>
do you really need Infinispan to do that ? Look at [1], IMO it&#39;s much<br>
more elegant... :-)<br>
<br>
[1] <a href="http://www.jgroups.org/taskdistribution.html" target="_blank">http://www.jgroups.org/taskdistribution.html</a><br>
<div class=""><br>
On 26/03/14 16:54, Romain Pelisse wrote:<br>
&gt; Well, my requirement is exactly the same ! Just that one node (and not<br>
&gt; all of them) runs a task. So instead of setting up Quartz clustering, we<br>
&gt; let the Seam/Quartz scheduling fire up task on each node, but the &quot;first<br>
&gt; node&quot; to get there locks some cache (which is replicated sync. with<br>
&gt; pessimistic locking), so that the other ones cannot acquire the lock.<br>
&gt;<br>
&gt; It&#39;s not that elegant, but this remove the need of clustering quartz and<br>
&gt; make the needs for configuration to the bare minimal (more/less just<br>
&gt; ispn inside wildfly needs to be configured). The difference between a<br>
&gt; test env and a pre prod and prod env is only that ISPN is distributed<br>
&gt; (and the mentioned cache replicated).<br>
&gt;<br>
&gt; Implementation wide, I think the customer end up having a static method<br>
&gt; being call on all Quartz classes, but I guess this could be placed in<br>
&gt; somekind of interceptor.<br>
&gt;<br>
&gt; I can ask the developer involved at the customer to discuss this with<br>
&gt; you if you want.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 26 March 2014 13:35, Ales Justin &lt;<a href="mailto:ales.justin@gmail.com">ales.justin@gmail.com</a><br>
</div><div class="">&gt; &lt;mailto:<a href="mailto:ales.justin@gmail.com">ales.justin@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;&gt;     I&#39;m not bridging Quartz with ISPN, I&#39;m currently using ISPN to<br>
&gt;&gt;     synchronise Quartz task (instead of clustering Quartz), mostly to<br>
&gt;&gt;     simplify a customer app (ie just need to tweak the ISPN cluster,<br>
&gt;&gt;     nothing else).<br>
&gt;<br>
&gt;     How do you do that?<br>
&gt;     By executing a job on entry eviction?<br>
&gt;<br>
&gt;&gt;     Out of curiosity, can you comment a bit about why/how you want to<br>
&gt;&gt;     bridge Quartz with ISPN ?<br>
&gt;<br>
&gt;     Wrt how, no idea yet. :-)<br>
&gt;     It&#39;s been a while since I used Quartz.<br>
&gt;<br>
&gt;     My requirement is to have a single job per trigger execution across<br>
&gt;     all nodes.<br>
&gt;     e.g. only one node should handle particular job<br>
&gt;<br>
&gt;     -Ales<br>
&gt;<br>
&gt;&gt;     On 26 March 2014 12:25, Ales Justin &lt;<a href="mailto:ales.justin@gmail.com">ales.justin@gmail.com</a><br>
</div><div class="">&gt;&gt;     &lt;mailto:<a href="mailto:ales.justin@gmail.com">ales.justin@gmail.com</a>&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;         Was there ever any attempt to bridge Infinispan and Quartz?<br>
&gt;&gt;         * <a href="http://quartz-scheduler.org/documentation/faq#FAQ-clustering" target="_blank">http://quartz-scheduler.org/documentation/faq#FAQ-clustering</a><br>
&gt;&gt;<br>
&gt;&gt;         As I&#39;ll probably need it for this:<br>
&gt;&gt;         * <a href="https://developers.google.com/appengine/docs/java/config/cron" target="_blank">https://developers.google.com/appengine/docs/java/config/cron</a><br>
&gt;&gt;<br>
&gt;&gt;         If nothing exists, I&#39;ll have a crack at it.<br>
&gt;&gt;<br>
&gt;&gt;         -Ales<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;         _______________________________________________<br>
&gt;&gt;         infinispan-dev mailing list<br>
&gt;&gt;         <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
</div>&gt;&gt;         &lt;mailto:<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>&gt;<br>
<div class="">&gt;&gt;         <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;     --<br>
&gt;&gt;     Romain PELISSE,<br>
</div>&gt;&gt;     /&quot;The trouble with having an open mind, of course, is that people<br>
<div class="">&gt;&gt;     will insist on coming along and trying to put things in it&quot; --<br>
</div>&gt;&gt;     Terry Pratchett/<br>
&gt;&gt;     Belaran ins Prussia (blog) &lt;<a href="http://blog.wordpress.belaran.eu/" target="_blank">http://blog.wordpress.belaran.eu/</a>&gt;<br>
<div class="">&gt;&gt;      (... finally up and running !)<br>
&gt;&gt;     _______________________________________________<br>
&gt;&gt;     infinispan-dev mailing list<br>
</div>&gt;&gt;     <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>&gt;<br>
<div class="">&gt;&gt;     <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     infinispan-dev mailing list<br>
</div>&gt;     <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>&gt;<br>
<div class="">&gt;     <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Romain PELISSE,<br>
</div>&gt; /&quot;The trouble with having an open mind, of course, is that people will<br>
&gt; insist on coming along and trying to put things in it&quot; -- Terry Pratchett/<br>
&gt; Belaran ins Prussia (blog) &lt;<a href="http://blog.wordpress.belaran.eu/" target="_blank">http://blog.wordpress.belaran.eu/</a>&gt;     (...<br>
<div class="im HOEnZb">&gt; finally up and running !)<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; infinispan-dev mailing list<br>
&gt; <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
&gt;<br>
<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
Bela Ban, JGroups lead (<a href="http://www.jgroups.org" target="_blank">http://www.jgroups.org</a>)<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Romain PELISSE,<br><i>&quot;The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it&quot; -- Terry Pratchett</i><br>
<a href="http://blog.wordpress.belaran.eu/" target="_blank">Belaran ins Prussia (blog)</a>     (... finally up and running !)
</div>