Running background service to modify the configuration file

GPS platform, site construction, software development, system operation and maintenance, to find a large forest network technology!
http://cnsendnet.taobao.com
from Sen Science and Technology official blog
http://www.cnsendblog.com/index.php/?p=445

 

Conclusion: Whether as a global variable, or in the internal AddCCCNMsgQueMsg () method, each execution method takes from the configuration file, is the same: the service at runtime, modify the configuration file could not be effective, it is necessary to restart the service.
Have time to look at the Hong Kong platform, modify the "terminal upgrade package path" After configuration, reboot the GA can not take effect?
1, define a global variable, the value read from the configuration file configured

2, call the global variable in AddCCCNMsgQueMsg () method

3, Callback () method call AddCCCNMsgQueMsg () method

4, from the CCCN to subscribe to the service message ID announced that the execution Callback () method

GPS platform, site construction, software development, system operation and maintenance, to find a large forest network technology! http://cnsendnet.taobao.com

Mori from the Science and Technology official blog
http://www.cnsendblog.com/index.php/?p=445

Guess you like

Origin www.cnblogs.com/cnsend/p/12384895.html