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?