Arthur Oysgelt wrote: > I'm trying to swap out TransactionalSyndicator with a different > implementation, but I'd rather not extend the ActivationCommand to use my > CustomTransactionalSyndicator. Is there a way to add a new syndicator as the > primary one instead of the TransactionalSyndicator? > > Using Magnolia 4.5.3, if it matters.
The exchange-simple Magnolia module has the following type mapping defined in its Magnolia module descriptor (META-INF/magnolia/exchange-simple.xml in the magnolia-module-exchange-simple JAR): ---- <type-mapping> <type>info.magnolia.cms.exchange.Syndicator</type> <implementation>info.magnolia.module.exchangesimple.SimpleSyndicator</implementation> </type-mapping> ---- If you use the Magnolia XA Activation module you'll have the following from its Magnolia module descriptor (META-INF/magnolia/exchange-transactional.xml in the magnolia-module-exchange-transactional JAR): ---- <property> <name>info.magnolia.cms.exchange.Syndicator</name> <value>info.magnolia.module.exchangetransactional.TransactionalSyndicator</value> </property> ---- I'm not sure why the Magnolia XA Activation module descriptor uses a property instead of a type-mapping, but if you have your own module depending on exchange-transactional, I guess you can set your own value for this property, because "A definition in a module takes precedence over definitions in modules that it depends on." according to https://wiki.magnolia-cms.com/display/DEV/Components+in+Magnolia By the way, do you really require a custom syndicator? Wouldn't adding some activation commands work? Nils. ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
