2 Replies Latest reply on Jun 12, 2018 4:41 AM by ochaloup

    XAResource#end to return status for 1PC optimization


      Hi all,


      there is a request of providing new "XAResource interface" which would be capable to return status on end method which can be utilized for 1PC optimization.

      The user request and the covering JBTM jiras are here:


      WFLY request: https://issues.jboss.org/browse/WFLY-10258

      JBTM proposal covering jira: https://issues.jboss.org/browse/JBTM-3020
      the previous discussion on this topic is at: Can resource delisting prevent participation in commit processing?


      I created a document gathering my ideas about code changes (entriched with semi-sequence diagrams). You can check it here:



      The PR which I created based on my code investigation is at: [JBTM-3020] xa read only optimization by ochaloup · Pull Request #1327 · jbosstm/narayana · GitHub

      (I would like explicitly mention that I understand this covers only synchronous handling of the prepare call under BaseAction but I don't want to work further on this until it's more clear if there is some better way to manage the request)


      I consider this as a first draft. Any feedback is keenly welcomed. Namely I would like to ask jhalliday if he is so kind and take a look at this.


      Many thanks for any idea, for any details, let me know I will add if necessary