I'm new to apache ignite.
When I load my web page the first time, all is good and it picks up my results. But if I refresh my page again it gives me an error saying:
Default Ignite instance has already been started.
my code:
public MyConstructor() {
Ignition.setClientMode(true);
ignite = Ignition.start();
}
So what happens is when I refresh my page it loads the constructor everytime. Is there a better way to find if a node exists and use that? Or if there is a better way to achieve this.
Use Ignition.TryGetIgnite() ?? Ignition.Start()
construct to either get an existing instance or start a new one.