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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major 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.

      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.

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

                Created:
                Updated:
                Resolved: