Adding an MDB to the Agency Case Study

To illustrate the use of MDBs you will extend the Agency case study to utilize a Message-Driven bean to match advertised jobs to new applicants as they register with the system or when an applicant updates his or her skills or location.

As each applicant is created, modified, or deleted, a message is sent to the JMS queue jms/applicantQueue. The message includes the applicant's login and a flag to indicate if this is a new applicant or a change to an existing one. An MDB will receive this message and compare the applicant's details with all advertised jobs. The MDB will add an entry to the Matched table in the database if the applicant's location matches a job location and the applicant has at least one ...

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.