You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Humphrey <hm...@gmail.com> on 2018/01/02 09:27:42 UTC
Test Ignite Client
Hello,
I have the following question, I want to test my IgniteClient, which has
it's own @Configuration file which has an igniteBean:
Now I created a separate AppConfig for the testing (which Imports the
AppConfig above from the client), and I want to start first a server node so
the client can connect to, but when I try to do that it always tries to
start the client first, which can not start up because it can not find the
server node.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Test Ignite Client
Posted by afedotov <al...@gmail.com>.
Hi Humphrey,
Consider forcing server mode on the client
https://apacheignite.readme.io/docs/clients-vs-servers#section-forcing-server-mode-on-client-nodes.
Another option is to enforce bean definition registration order. You could
explicitly order configurations so that server bean gets registered before
the client. Another trick is to use @ConditionalOnBean(name = "serverBean")
annotation to impose bean definition order.
Kind regards,
Alex
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Test Ignite Client
Posted by vkulichenko <va...@gmail.com>.
Hi Humphrey,
Can you show the code?
-Val
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/