Uploaded image for project: 'Spring.NET'
  1. Spring.NET
  2. SPRNET-1326

NmsTransactionManager can break transaction synchronization

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.0, 1.3.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      NmsTransactionManager's DoBegin method can break transaction synchronization in some cases, if more than on transaction manager is used.

      I'm refering to Spring.net 1.2.0, NmsTransactionManager.cs, Line 215
      catch (NMSException ex)

      In two of my tests the
      con = CreateConnection(); (Line 198) doesn't throw a NMSException, but one of these exceptions:
      SocketException
      System.IO.IOException "Message: Wire format negotiation timeout: peer did not send his wire format."

      these exceptions will not be caught by the catch block and will also not trigger the CannotCreateTransactionException.

      maybe the catch block should be changed to catch other exception types as well.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mark.pollack Mark Pollack
                Reporter:
                gniederleitner Gerhard Niederleitner
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: