Section 8.2. Sending Email Messages with JavaMail


8.2. Sending Email Messages with JavaMail

To upgrade the JAW Motors application to send email messages using JavaMail, we need to do the following:

  • Add Java Code:

    • Call the JavaMail utility class from the MDB .

    • Write a utility class to encapsulate sending an email message with JavaMail.

    • Factor out JNDI calls into the ServiceLocator.

  • Upgrade deployment:

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

    • Automate JavaMail-based JNDI reference settings with XDoclet.

    • Configure JavaMail on JBoss with an MBean.



JBoss at Work. A Practical Guide
JBoss at Work: A Practical Guide
ISBN: 0596007345
EAN: 2147483647
Year: 2004
Pages: 197

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net