]
Ondra Chaloupka reassigned JBTM-2906:
-------------------------------------
Assignee: (was: Ondra Chaloupka)
It's not possible to combine start and end flags in call of
XATerminator.recover
---------------------------------------------------------------------------------
Key: JBTM-2906
URL:
https://issues.jboss.org/browse/JBTM-2906
Project: JBoss Transaction Manager
Issue Type: Bug
Components: JCA
Affects Versions: 5.6.1.Final
Reporter: Ondra Chaloupka
Priority: Minor
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/classe...
https://github.com/jbosstm/narayana/blob/5.6.1.Final/ArjunaJTS/jtax/class...
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
{code}
XATerminator.recover(XAResource.TMSTARTRSCAN);
XATerminator.recover(XAResource.TMENDRSCAN);
{code}
Values are
{code}
XAResource.TMSTARTRSCAN : 16777216 : 1000000000000000000000000
XAResource.TMENDRSCAN : 8388608 : 100000000000000000000000
{code}
The way would be ability to call the {{recover}} like this
{code}
XATerminator.recover(XAResource.TMSTARTRSCAN | XAResource.TMENDRSCAN);
{code}