You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Ilya Roublev <ir...@gmail.com> on 2019/01/23 05:53:35 UTC
Prevent automatic Ignite server node start for Spring Boot
I have the following problem. I'm developing a Spring Boot application, this
application uses Ignite, but via creation of some client nodes (when it is
necessary). The following is the part of pom.xml for the project:
The problem is when the application is started, I get the following log:
But that is not at all what was expected, this server node was created
without any intention to do this (Ignite server nodes are started
separately). The matter is I removed just for test purposes all the code
working with Ignite at all, the only thing that has to do with Ignite is the
following dependency:
Now there are no any configuration xmls in JAR (relating to Ignite or not).
But when JAR is launched, the above Ignite server node starts.
Could you please help me and explain how to prevent such a start of Ignite
server nodes? Further within the application special client nodes are to be
created, but this is to be done intentionally. I'd like to avoid any
unintentional creation of any Ignite nodes (server or client ones).
Thank you very much in advance.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Prevent automatic Ignite server node start for Spring Boot
Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!
I don't think that it is issue on Ignite's end. You could talk to Spring
about this issue, but I think the point of Spring Boot is auto-init
everything so they might disagree.
Regards,
--
Ilya Kasnacheev
сб, 26 янв. 2019 г. в 01:55, Ilya Roublev <ir...@gmail.com>:
> ilya.kasnacheev wrote
> > It seems that somebody (like spring boot) have started
> >
> > org.apache.ignite.cache.CacheManager
> >
> >
> > How to prevent it I am unaware, you should probably consult with Spring
> > Boot docs.
>
> Thank you very much! It seems that
>
> spring.cache.type: simple
>
> put in application.yml file switches off starting of
> org.apache.ignite.cache.CacheManager.
>
> But it is not clear, how spring.cache.type: simple can influence on other
> things loaded by spring boot (I'm using by now also some other database via
> hibernate).
>
> Certainly it would be better to exclude starting of
> org.apache.ignite.cache.CacheManager via some parameter specific namely for
> Ignite.
>
> Thanks once again for your help!
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: Prevent automatic Ignite server node start for Spring Boot
Posted by Ilya Roublev <ir...@gmail.com>.
ilya.kasnacheev wrote
> It seems that somebody (like spring boot) have started
>
> org.apache.ignite.cache.CacheManager
>
>
> How to prevent it I am unaware, you should probably consult with Spring
> Boot docs.
Thank you very much! It seems that
spring.cache.type: simple
put in application.yml file switches off starting of
org.apache.ignite.cache.CacheManager.
But it is not clear, how spring.cache.type: simple can influence on other
things loaded by spring boot (I'm using by now also some other database via
hibernate).
Certainly it would be better to exclude starting of
org.apache.ignite.cache.CacheManager via some parameter specific namely for
Ignite.
Thanks once again for your help!
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Prevent automatic Ignite server node start for Spring Boot
Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!
It seems that somebody (like spring boot) have started
org.apache.ignite.cache.CacheManager
How to prevent it I am unaware, you should probably consult with Spring
Boot docs.
Regards,
--
Ilya Kasnacheev
ср, 23 янв. 2019 г. в 09:13, Humphrey <hm...@gmail.com>:
> Did you rebuild your project? Or update your maven dependencies? Should not
> happen if you removed the dependency of ignite.
>
> It also should only start a node if you have in your spring configuration
> something (bean) of ignite.
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>
Re: Prevent automatic Ignite server node start for Spring Boot
Posted by Humphrey <hm...@gmail.com>.
Did you rebuild your project? Or update your maven dependencies? Should not
happen if you removed the dependency of ignite.
It also should only start a node if you have in your spring configuration
something (bean) of ignite.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/