<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 19, 2013 at 2:15 PM, Emmanuel Bernard <span dir="ltr">&lt;<a href="mailto:emmanuel@hibernate.org" target="_blank">emmanuel@hibernate.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu 2013-12-19  9:46, Galder Zamarreņo wrote:<br>
&gt; &gt; == Example of continuous query atop remote listeners<br>
&gt; &gt;<br>
&gt; &gt; Thinking about how to implement continuous query atop this<br>
&gt; &gt; infrastructure I am missing a few things.<br>
&gt; &gt;<br>
&gt; &gt; The primary problem is that I don&#39;t want to enlist a filter id per<br>
&gt; &gt; continuous query I want to run. Not only that but I&#39;d love to be able to<br>
&gt; &gt; add a continuous query on the fly and disable it on the fly as well per<br>
&gt; &gt; client. For that filters and converters are not flexible enough.<br>
&gt; &gt;<br>
&gt; &gt; What is missing is the ability to pass parameters from the client to<br>
&gt; &gt; the remote filter and remote converter. Parameters should be provided<br>
&gt; &gt; *per client*. Say Client 1 register the continuous query listener with<br>
&gt; &gt; &quot;where age &gt; 19&quot; and client 2 registers the CQ listener with &quot;where name<br>
&gt; &gt; = emmanuel&quot;. The filter knowing for which client it filters, it will be able to only<br>
&gt; &gt; return the keys that match the query.<br>
&gt;<br>
&gt; This all sounds a bit like remote code exectution to me? You&#39;re asking for the client to pass some kind of executable thing that acts as a filter. That&#39;s a separate feature IMO, which I believe @Tristan is looking into. Once that&#39;s in place, I&#39;m happy to enhance stuff in the remote event side to support it.<br>


<br>
</div>I don&#39;t think you are correct.<br>
This is not remote execution in the sense of arbitrary code driven by<br>
the client. Remote execution will likely be triggered, render a<br>
result and stop. It will not send matching events in a continuous fashion.<br>
Plus remote execution will likely involve dynamic languages and I&#39;m not<br>
sure we want to go that route for things like continuous query.<br></blockquote></div><br></div><div class="gmail_extra">To be clear, this is exactly the same as the filter parameters that Radim was asking for, right? From Infinispan&#39;s point of view, the filter just takes a String parameter, and the fact that that string can be parsed by the filter in a particular language is irrelevant.<br>

<br></div></div>