Shiva Sai
Shiva Sai

Reputation: 35

I am not able to deploy services in Apache ignite while working with .net

If I set the client mode to true by below line

Ignition.ClientMode = true;

I am not able to deploy the service. The code I used for deployment is

   ServiceConfiguration serviceConfiguration = new ServiceConfiguration();
            serviceConfiguration.Name = "FService";
            serviceConfiguration.MaxPerNodeCount = 4;
            serviceConfiguration.TotalCount = 10;
            serviceConfiguration.Service = new MyService();
            ignite.GetCluster().GetServices().Deploy(serviceConfiguration);

The code used for fetching the service is

  IMyService proxy = ignite.GetServices().GetServiceProxy<IMyService>("FService", false);

I am getting exception like service not found

The same code is working perfectly if I set the client mode to false

Ignition.ClientMode = false;

Please suggest to me what I am missing?

Upvotes: 2

Views: 143

Answers (1)

alamar
alamar

Reputation: 19313

Do you have code for this service on other nodes?

If your node is Server, and code is only available on current node, it will be deployed locally.

But if node is Client, and code is not available on any server nodes, service won't be deployed.

Upvotes: 1

Related Questions