Exercise

To extend your knowledge of MDBs, try the following exercise.

  1. Extend the Agency case study. Add an MDB called JobMatch that receives a messages from the Advertise and AdvertiseJob Session beans when a job is created, deleted or modified. The MDB should search through all the applicants to find those suitable to be considered for the job. To be considered for a job, the applicant must match the job's:

    • Location

    • At least one skill

    If the applicant has all the required skills, set exactMatch to true; otherwise, false.

    All applicants that match at least one skill must be added to the Matched table. Use the message queue jms/jobMatch for your enhancements because you cannot use the same queue as the one used in the Applicant example. This queue ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.