[jboss-dev-forums] [Design of JBoss jBPM] - jBPM 4 Emails Sync vs Async
bradsdavis
do-not-reply at jboss.com
Mon Apr 6 19:34:30 EDT 2009
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#4223841
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223841
More information about the jboss-dev-forums
mailing list