Sams Teach Yourself J2EE™ in 21 Days, Second Edition
by Martin Bond, Dan Haywood, Debbie Law, Andy Longshaw, Peter Roxburgh
Exercises
Today's exercise is to extend the SAAJ servlet for the Agency case study so that a client can find all the applicants at a specific location. In the exercise directory under Day 21 on the accompanying Web site there is a version of the Agency case you have seen in this chapter. Your task is to add support to the servlet for another message that contains the name of a location and returns an array of strings representing the applicants registered at that location.
The provided files consist of the SAAJ servlet discussed in this chapter (LocationInformationService) that allows you to list all the jobs at a particular location.
If you need a few pointers, you should:
Update the LocationInformationService.java and ServerMarshaler.java
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access