[
https://jira.jboss.org/browse/JBAS-8546?page=com.atlassian.jira.plugin.sy...
]
Takayoshi Kimura updated JBAS-8546:
-----------------------------------
Summary: Mail MDB stop working due to negative Thread.sleep(timeout) call in
NewMsgsWorker#run() (was: Negative Thread.sleep(timeout) call in NewMsgsWorker#run())
Mail MDB stop working due to negative Thread.sleep(timeout) call in
NewMsgsWorker#run()
---------------------------------------------------------------------------------------
Key: JBAS-8546
URL:
https://jira.jboss.org/browse/JBAS-8546
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JCA service
Affects Versions: 6.0.0.M5
Reporter: Takayoshi Kimura
Assignee: Jesper Pedersen
Fix For: TBD-6.x
Attachments: JBAS-8546.patch
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira