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

    • Bug
    • Resolution: Done
    • Major
    • 6.1.0
    • 6.0.0.M5
    • JCA service
    • None
    • 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

              jpederse@redhat.com Jesper Pedersen
              rhn-support-tkimura Takayoshi Kimura
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: