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

Transaction attribute 'timeout' not propagated when using TxScopeTransactionManager

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Spring-NET-TX
    • Labels:
      None
    • Environment:
      windows 7

      Description

      Putting a Timeout value in a Transaction attribute has no effect.
      I suspect the following method in class Spring.Transaction.Interceptor.AttributesTransactionAttributeSource to be responsible.

      protected override ITransactionAttribute FindTransactionAttribute(Attribute[] attributes)
      {
      if (attributes == null)

      { return null; }

      foreach (Attribute attr in attributes)
      {
      if (attr is TransactionAttribute)
      {
      TransactionAttribute ta = (TransactionAttribute)attr;
      RuleBasedTransactionAttribute rbta =
      new RuleBasedTransactionAttribute();

      //TODO another reminder to sync property names
      rbta.PropagationBehavior = ta.TransactionPropagation;
      rbta.TransactionIsolationLevel = ta.IsolationLevel;
      rbta.ReadOnly = ta.ReadOnly;

      The timeout attribute is never copied
      so we endup with the default machine timeout of 10mn which was unfortunatly not enough for us.

      Regards,
      Manuel

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              manuel Manuel Meyer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: