ololo3000 commented on a change in pull request #8941:
URL: https://github.com/apache/ignite/pull/8941#discussion_r604820222
##########
File path: docs/_docs/extensions-and-integrations/spring/spring-data.adoc
##########
@@ -152,17 +184,37 @@ public class SpringAppCfg {
}
}
----
+tab:Ignite thin client connection configuration[]
+[source,java]
+----
+@Configuration
+@EnableIgniteRepositories
+public class SpringAppCfg {
+ /**
+ * Creating Apache Ignite thin client instance bean. A bean will be passed
to the IgniteRepositoryFactoryBean to
+ * connect to the Ignite cluster and perform cache operations.
+ */
+ @Bean
+ public IgniteClient igniteInstance() {
+ return Ignition.startClient(new
ClientConfiguration().setAddresses("127.0.0.1:10800");;
+ }
+}
+----
--
-The configuration has to instantiate Apache Ignite bean (node) that will be
passed to `IgniteRepositoryFactoryBean`
-and will be used by all the Apache Ignite repositories in order to connect to
the cluster.
+The configuration has to instantiate Apache Ignite bean (node) or Apache
Ignite thin client bean that will be passed to
+`IgniteRepositoryFactoryBean` and will be used by all the Apache Ignite
repositories in order to connect to the cluster.
Review comment:
Got it. Thank you.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]