On Tue, Apr 19, 2011 at 6:15 AM, Douglas Hubler <[email protected]> wrote:
> Question mostly targeted to Cristi and George, > > I extended org.sipfoundry.sipxconfig.admin.TemplateConfigurationFile > to generate a configuration file for stunnel and another one for > mongod but I'm not sure how to trigger the file to replicate. I want > stunnel file to replicate when Location objects are added/removed or > when locations change their ip addresses. Do i need to listen for > save/delete events on Location objects then give my file to the > ReplicationManager? Replication triggering in general is spread across contexts. At some point we would need to change this, and create a mechanism to have one single place where we trigger replications. I vaguely remember that there were some proposals on this matter (few years ago - I think George remembers too) At this point I think that this is OK to listen for save/delete events and push replications... sipXconfig has an AOP mechanism to intercept when object are saved in DB. (an example is here AccCodeContextImpl: onSave / onDelete methods) Hope this helps, Mircea I also want it to replication when profiles are > send to a machine for the first time or when admin explicitly pushes > profiles to a server. Do i need to list them in a process definition xml file? > _______________________________________________ > sipx-dev mailing list > [email protected] > List Archive: http://list.sipfoundry.org/archive/sipx-dev/ >
_______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev/
