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

To practice working with XML, try the following exercise.

  1. Extend the Agency case study. Amend the AdvertiseBean and AdvertiseJobBean Session beans and the MessageSender helper class to create an XML document containing all the information about the jobs when they are added or updated. The XML document should have a structure like the following:

    <?xml version ="1.0"?>
    <jobSummary>
      <job customer="winston" reference="Cigar Trimmer" new="false">
        <location>London</location>
        <description>Must like to talk and smoke</description>
        <skill>Cigar maker</skill>
        <skill>Critic</skill>
      </job>
    </jobSummary>
    

Update your Message-driven bean called JobMatch, written as the exercise on Day 10, that searches through all the applicants to find those suitable ...

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