5 Replies Latest reply on Apr 14, 2009 9:03 AM by gaohoward

    XA Heuristic Example --- We are not ready for it?

    gaohoward

      It seems not so meaningful for this example, look at the code:

      1. our XAResource methods (ClientSessionImpl) commit() and rollback() don't throw any Heuristic exceptions.
      2. out XAResource method forget() also does nothing. See ServerSessionImpl.doHandleXAForget()

       private void doHandleXAForget(final SessionXAForgetMessage packet)
       {
       // Do nothing since we don't support heuristic commits / rollback from the
       // resource manager
      
       Packet response = new SessionXAResponseMessage(false, XAResource.XA_OK, null);
      
       channel.confirm(packet);
      
       channel.send(response);
       }