Is restart required after adding a new domain?
Hi, We have a system where multiple organizations with their respective users are set up in our LDAP server. We have Nuxeo configured to use the LDAP server for login and domain information purposes. Is there a way to avoid having to restart Nuxeo when we add the new domain there?
If I understand, you'd like to change content template contributions (e.g. extension point “factoryBinding”) for defining or updating new domain structures, and finally without restarting your Nuxeo DM.
You have to reinit your structure which is done during the server startup. If you want to reinit your structure without restarting your server, create an action or operation containing this piece of code (Be carefull, every documents created will be removed except default ones.):
DocumentModel root = session.getRootDocument(); session.removeChildren(root.getRef()); Framework.getService(ContentTemplateService.class).executeFactoryForType(root); session.save();