-
1. Re: Requirements for ordering RecoveryModules
mmusgrov Nov 13, 2015 12:07 PM (in response to mmusgrov)Note that we can already create an ordering in standalone mode using a jbossts properties file by setting the RecoveryEnvironmentBean.recoveryModuleClassNames property. However, this will not work when running inside a wildfly subsystem.
Also noteworthy is that if the REST-AT bridge RM can move the record during periodicWorkFirstPass then any other RM will not see it during periodicWorkSecondPass and simply ignore it. If that fix works for the bridge then I don't think it is worthwhile adding a RecoveryModule ordering interface for the single CMR use case.
-
2. Re: Requirements for ordering RecoveryModules
tomjenkinson Nov 16, 2015 7:00 AM (in response to mmusgrov)I was about to respond that the order is defined by the enlistment order so either via Java code or via the order in JBossTS properties file. I would not be against supporting some kind of ordering interface. Perhaps it could be a new interface that has something like "RecoveryModule[] getMustRunAfter()" and a second one "RecoveryModule[] getMustRunBefore()".
What was the issue number for the problem that gytis came across?
-
3. Re: Requirements for ordering RecoveryModules
mmusgrov Nov 16, 2015 7:05 AM (in response to tomjenkinson)It happened with the bridge ([JBTM-2544] RTS inbound bridge recovery does not work with JTS - JBoss Issue Tracker).
-
4. Re: Requirements for ordering RecoveryModules
mmusgrov Dec 1, 2015 9:12 AM (in response to mmusgrov)We can configure the order using a properties file or by setting a system property.