Alejandro and I were discussing the job executor and the sending of emails.
It is our theory that it would be best to always schedule emails to be sent rather than
try to accomplish the task synchronously.
The benefit, which we believe is worth the cost of scheduling and executing
asynchronously, is that emailing would then be participating in JTA transactions.
In other words... if the process failed after the email node was encountered, the email
scheduling would be rolled back, and the email would not be sent -- which in essence is
allowing JavaMail never to be called unless the transaction succeeds.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223841#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...