{"id":55,"date":"2010-10-11T13:46:25","date_gmt":"2010-10-11T19:46:25","guid":{"rendered":"http:\/\/sha.nnoncarey.com\/blog\/?p=55"},"modified":"2012-11-16T18:11:07","modified_gmt":"2012-11-17T00:11:07","slug":"coherence-directed-query-not-supported","status":"publish","type":"post","link":"https:\/\/sha.nnoncarey.com\/blog\/archives\/55","title":{"rendered":"Coherence &#8220;directed query not supported&#8221;"},"content":{"rendered":"<p>Oracle claims that the Coherence API is the same whether or not during runtime it is a full member of the grid or it is an Extend client:<\/p>\n<blockquote><p>Coherence*ExtendTM  clients provide the same rich API support as the standard Coherence API without being full data members of the cluster.<sup><a href=\"http:\/\/coherence.oracle.com\/display\/COH35UG\/Coherence+Extend\">ref<\/a><\/sup><\/p><\/blockquote>\n<p>While strictly speaking that is true, I am learning the API <em>usage<\/em> may differ. The latest example I have is the following code, which works fine when run inside (as a full member of) the grid:<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nInvocationService invocationService = getInvocationService();\r\nSet members = invocationService.getCluster().getMemberSet();\r\nMap&lt;Member, CoherenceMember&gt; memberResults = invocationService.query(  \r\n    new MyCacheDistributionQueryInvocable(), members);\r\n<\/pre>\n<p>However, when run as an Extend client, this code gives an error that Google as yet can shed no light on:<\/p>\n<blockquote><p>java.lang.IllegalArgumentException : directed query not supported; the specified Member set must be null<\/p><\/blockquote>\n<p>So, the second parameter to InvocationService#query() has to be null, if run as an Extend client. So, the question is now: how do I get information about the individual members of the grid from the Extend client? Or is it even possible? <a href=\"http:\/\/kr.forums.oracle.com\/forums\/thread.jspa?messageID=3562789\">This post<\/a> may end up being helpful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oracle claims that the Coherence API is the same whether or not during runtime it is a full member of the grid or it is an Extend client: Coherence*ExtendTM clients provide the same rich API support as the standard Coherence API without being full data members of the cluster.ref While strictly speaking that is true, &hellip; <a href=\"https:\/\/sha.nnoncarey.com\/blog\/archives\/55\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Coherence &#8220;directed query not supported&#8221;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-coherence"],"_links":{"self":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":9,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":197,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions\/197"}],"wp:attachment":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}