-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
5.6.1.Final
-
None
Current implementation of XATerminator.recover (either for JTA or JTS) does not permit combining flags to use.
https://github.com/jbosstm/narayana/blob/5.6.1.Final/ArjunaJTA/jta/classes/com/arjuna/ats/internal/jta/transaction/arjunacore/jca/XATerminatorImple.java#L323
https://github.com/jbosstm/narayana/blob/5.6.1.Final/ArjunaJTS/jtax/classes/com/arjuna/ats/internal/jta/transaction/jts/jca/XATerminatorImple.java#L246
Flags are expected to be combined as their values are designed to use bitwise operators. Especially | is handy for starting and ending the recover scan in once.
Currently we need to call
XATerminator.recover(XAResource.TMSTARTRSCAN); XATerminator.recover(XAResource.TMENDRSCAN);
Values are
XAResource.TMSTARTRSCAN : 16777216 : 1000000000000000000000000 XAResource.TMENDRSCAN : 8388608 : 100000000000000000000000
The way would be ability to call the recover like this
XATerminator.recover(XAResource.TMSTARTRSCAN | XAResource.TMENDRSCAN);