您的位置:首页 > 大数据 > 人工智能

How to send Email asynchronously

2012-01-29 20:26 260 查看
In our projects, we send message to JMS queue, including mail template and parameters, then MDBs consume the messages in the queue and send the message to the SMTP server through the Mail Session in the WAS.

Noticeably, we shouldn't send mail message to SMTP server directly, as performance might be a potential problem when we do it in a synchronous way.

Further, this function should be encapsulated as a reusable jar.

Did I make myself clear?
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: