Peppol Reporting Database configuration #195
-
Dear @phax , Really appreciated your quick reply on my previous question regarding to Phase4 configuration, it's really helpful for me to come to a solution with your suggestion. Now I'm encountering again another issue also related to configuration, it's Peppol reproting database configuration. Because I cannot use IConfig which passed into initBackend method as a parameter. One of suggestion that you gave me earlier is to use Environment Variable to override CONFIG_FILE, but this cannot work in my project due to some limitation in the deployment. I also tried to pass configuration to SPI implementation class by using @Autowired and @value, but the values in application.properties cannot be read (I guess due to some loading order). Any suggestion for me on this part will be great appriciated. Thank you so much again for your great work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@digitalantiz-team Thanks for reaching out to me. Most likely you used a different user name for the last query :)
See e.g. https://github.com/phax/ph-commons/blob/master/ph-config/src/test/java/com/helger/config/ConfigTest.java#L172 for a test function how to create a configuration based on a hth |
Beta Was this translation helpful? Give feedback.
@digitalantiz-team Thanks for reaching out to me. Most likely you used a different user name for the last query :)
IConfig
is an interface that is implemented by e.g. classcom.helger.config.Config
. It's a abstration of configuration sources like system properties, environment variables, properties files or evenMap
s with keys and values.See e.g. https://github.com/phax/ph-commons/blob/master/ph-config/src/test/java/com/helger/config/ConfigTest.java#L172 for a test function how to create a configuration based on a
Map
.hth