IBMStreams / streamsx.messaging

This toolkit is focused on interacting with popular messaging systems such as Kafka, JMS, XMS, and MQTT. After release v5.4.2 the complete toolkit will be deprecated. See the README.md file for hints to alternative toolkits.
http://ibmstreams.github.io/streamsx.messaging/
Apache License 2.0
30 stars 32 forks source link

avoid loading app config multiple times from PE #323

Closed ghost closed 7 years ago

ghost commented 7 years ago

Application configuration is cached in a PropertyProvider, which is initialized by the PEs applicaztion config at construction time. Every time the PropertyProvider is used, it used to reload the config. This has been changed now in the LMS and MQTT operators. To retain the old function for the deprecated operators, two access methods, which allow control of reload, have been added to the PropertyProvider class and used in the JMS and MQTT operators.