Hi,

You don't have to modify platforms/cpp/ignite/src/ignite.cpp.
Why won't you modify your code, where you start the node?

I mean, in *your application code* write something like this:

Ignite node = Ignition::Start("node1");
IgniteBinding binding = node.GetBinding();

binding.RegisterComputeFunc<MyFunc>();

You don't have to modify method Ignition::Start() or any
other method for that.


Best Regards,
Igor

On Thu, Oct 26, 2017 at 5:31 PM, asingh <[email protected]> wrote:

> Hi Igor
>
> Shouldn't be a problem, given that the source code is there. I just want to
> make sure that I am doing it the right way. Currently, I have modified the
> main() method in platforms/cpp/ignite/src/ignite.cpp and added these two
> lines:
>
>         IgniteBinding binding = ignite.GetBinding();
>         binding.RegisterComputeFunc<PrintWords>();
>
> Also, when would I use IgniteModuleInit()? Is it when the Call() method is
> implemented in a shared library?
>
> Thanks!
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to