You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by vladtovbin <vl...@lpl.com> on 2019/09/03 18:31:03 UTC

ignite.net when started as service not reading spring config

On latest version of apache.ignite. Installed as Windows service on Win 2016.
Added this entry to AppSettings section in Apache.Ignite.exe.config:

<add key="Ignite.SpringConfigUrl"
value="C:\Apache\apache-ignite-2.7.5-bin\config\default-config.xml"/>

If I launch apache.ignite.exe via command prompt, it reads the above config
correctly. If I launch from the same location as service, the config file
above is ignored. Confirmed also via looking at the log files, it's not
reading data from the spring config file.

Any ideas?
Thanks



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

RE: ignite.net when started as service not reading spring config

Posted by Alexandr Shapkin <le...@gmail.com>.
Hi!

How do you run or install your service? Can you share a cmd?

I believe you need to use IgniteConfiguration.SpringConfigUrl settings for this [1]
I.e. <SpringConfigUrl> path </SpringConfigUrl>

Also get a try with CMD args [2]

[1] - https://apacheignite-net.readme.io/docs/configuration#section-spring-xml
[2] - https://apacheignite-net.readme.io/docs/standalone-nodes#section-configuring-standalone-node-via-command-line

From: vladtovbin
Sent: Tuesday, September 3, 2019 9:31 PM
To: user@ignite.apache.org
Subject: ignite.net when started as service not reading spring config

On latest version of apache.ignite. Installed as Windows service on Win 2016.
Added this entry to AppSettings section in Apache.Ignite.exe.config:

<add key="Ignite.SpringConfigUrl"
value="C:\Apache\apache-ignite-2.7.5-bin\config\default-config.xml"/>

If I launch apache.ignite.exe via command prompt, it reads the above config
correctly. If I launch from the same location as service, the config file
above is ignored. Confirmed also via looking at the log files, it's not
reading data from the spring config file.

Any ideas?
Thanks



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/