JBoss at Work: A Practical Guide

8.8. JavaMail Checklist

Before we move on to test the JAW Motors application's new email functionality, let's recap what we've done to implement JavaMail:

  • Added Java Code:

    • Called the TextEmail JavaMail utility class from the CreditCheckProcessor MDB

    • Wrote a TextEmail utility class to encapsulate sending an email message with JavaMail

    • Factored out JNDI calls into the ServiceLocator

  • Upgraded deployment:

    • Added JavaMail-based JNDI reference settings to the EJB-based deployment descriptors (ejb-jar.xml and jboss.xml)

    • Automated JavaMail-based JNDI reference settings in the CreditCheckProcessor MDB with XDoclet

    • Configured JavaMail on JBoss with an MBean

Категории