O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

  1. Write an application that executes from the command line and allows a user to send an e-mail. The application should prompt the user for his or her mail host and e-mail address, the recipient's e-mail address, the message subject, and the message content.

  2. There are two parts to this final exercise, and both relate to the case study application you have been building throughout this book:

    • When a customer registers a new job, a message is sent to the Job Match Message-driven bean. The bean then updates the Matched table with applicants that match that job. Now, write code using the JavaMail API that sends an e-mail message to the customer informing him or her of all the applicants that match his or her job specification.

    • When a new applicant ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required