AnsweredAssumed Answered

Redefine Spring bean from default-synchronization-context.xml

Question asked by lutz.horn on Jun 11, 2015
In Alfresco 5.0d, many Spring Context XML files are packaged into JAR files. For example, the file default-synchronization-context.xml is now contained inside the JAR tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-5.0.d.jar.

I want to redefine the Spring bean "userRegistrySynchronizer" (class: ChainingUserRegistrySynchronizer) defined in this XML file.

Where do I have to put my own version of this Context XML file so that the Spring beans defined in it are used instead of these defined in the XML from the JAR?

I've tried to put it into tomcat/shared/classes/alfresco/extension/subsystems/Synchronization/default but this has no effect.

Putting it directly into tomcat/shared/classes/alfresco/extension at least caues it to be loaded. But the Spring bean "userRegistrySynchronizer" redefined inside it is only used in the Authentication subsystem, not the Synchronization subsystem.

How can I redefine a bean from the Synchronization subsystem?

Outcomes