Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8546

Mail MDB stop working due to negative Thread.sleep(timeout) call in NewMsgsWorker#run()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.0.0.M5
    • Fix Version/s: 6.1.0
    • Component/s: JCA service
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Define multiple mail MDBs with DeliveryActive=false. Call startDelivery() on MDBs at the same time.

      Show
      Define multiple mail MDBs with DeliveryActive=false. Call startDelivery() on MDBs at the same time.

      Description

      When this happens the NewMsgsWorker no longer check new emails.

      We should check the timeout parameter value before calling Thread.sleep(timeout). Basically there is no guarantee that the timeout is positive value. Say if you activate 10 endpoints very quickly with same interval, the "next - now" calculation would be negative.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jesper.pedersen Jesper Pedersen
              Reporter:
              tkimura Takayoshi Kimura
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: