Quantcast
Channel: VMware Communities : Unanswered Discussions - vFabric GemFire [ARCHIVED]
Viewing all articles
Browse latest Browse all 532

Client excuting function on a particular server

$
0
0

I am trying to execute function on a particular server but I am unsuccessful in doing so.

Here is what I have tried:

Gemfire version: 6.6.3.4

 

client-cache.xml

<pool name="offers-client" subscription-enabled="false">
   <server host="server1" port="client-listner-port"/>

</pool>

Groovy code for client:

Pool pool =  PoolManager.find("offers-client");

...

Execution exec = FunctionService.onServer(pool).withArgs(argList);

ResultCollector rc = exec.execute ( "SomeFunction")

 

We have 2 servers in our test setup. Server1 and Server2. We want the function request to go to Server1 always. What we see is that function requests go to both Server1 and Server2.

What are we doing wrong?


Viewing all articles
Browse latest Browse all 532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>