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 registers, a message is sent to the Applicant Match Message-driven bean. The bean updates the Matched table with jobs that match that applicant. Now, write code using the JavaMail API that sends an e-mail message to the applicant informing him or her of the jobs to which he or she is suited.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.246.148