How to specify timeout for Send Mail activity in TIBCO ActiveMatrix BusinessWorks™?
book
Article ID: KB0074853
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks
5.13.1, 5.14.0 HF1 and above
Not Applicable
-
Description
There is no timeout property for the Send Mail activity in TIBCO ActiveMatrix BusinessWorks™ (BW). If the email server does not respond, the process ends up being blocked indefinitely.
Issue/Introduction
How to specify timeout for Send Mail activity in TIBCO ActiveMatrix BusinessWorks™?
Resolution
The Java Mail API properties mail.smtp.connectiontimeout and mail.smtp.timeout can be used to enforce timeout for Send Mail activity.
mail.smtp.connectiontimeout Socket connection timeout value in milliseconds. Default is infinite timeout.
For example, java.property.mail.smtp.connectiontimeout=5000
mail.smtp.timeout Socket read timeout value in milliseconds. This timeout is implemented by java.net.Socket. Default is infinite timeout.