Hybris Run Time Config File

Hybris Logo

This’s one of the tips provided by Hybris to update properties when server is already up and running. it’s useful most of time for develop environment where we need to update a bunch of properties at once.

You need to add following lines into your local.properties :

#Required (put path of your properties file)
runtime.config.file.path=/..../hybris/config/your_runtime_update_config.properties

If you want to check either your properties file is loaded or not you have to enable debug log on de.hybris.platform.util.config.FileBasedConfigLoader

#Optional
log4j2.logger.FileBasedConfigLoader.name=de.hybris.platform.util.config.FileBasedConfigLoader
log4j2.logger.FileBasedConfigLoader.level=DEBUG

And you will get log like this :

DEBUG [RuntimeConfigRefreshRunner (master)] [FileBasedConfigLoader] Runtime config watched file: /..../hybris/config/your_runtime_update_config.properties
DEBUG [RuntimeConfigRefreshRunner (master)] [FileBasedConfigLoader] dynamic properties file changed: false [file modifiedTime: 1567598757000, lasLoaded: 1567670610890]

2
Leave a Reply

avatar
1 Comment threads
1 Thread replies
2 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
Mohamed BELMAHIsri Recent comment authors

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
newest oldest most voted
Notify of
sri
Guest
sri

Hi ,
Can you please add payment integration steps in hybris after check out,
please