during time I was testing PostgreSQL with JBoss Narayana I hit a couple of issues[2][3][4] of XAException error codes not complying with the XA specification. I'm proposing a fix [1].
I would like ask if you would be so kind to review it, put there possible objections and in case then if the fix could be merged.