powered by Jive Software

Editing Openfire Config Properties from 3rd party program


I want my program to be able to obtain and modify a servers properties while its running on the fly. In the case of XML properties it seems fairly simple, just use openfire.xml(right?).

But in the case of system properties do I need to access the database directly or is there a better way?


There is no point in accessing openfire.xml while Openfire is running, if i understood you right. Openfire won’t see any changes until restarted. And you cant edit database directly, because Openfire is using caches and all your updates will be lost after the cache flush or you will simply brake it. You probably need to use some kind of Provider to do this, or maybe just a UserService plugin. Depends on what are you trying to do. Anyway, i cant suggest anything further as i’m not a coder.