Headfirst ejb
Upcoming SlideShare
Loading in...5
×
 

Headfirst ejb

on

  • 370 views

 

Statistics

Views

Total Views
370
Views on SlideShare
370
Embed Views
0

Actions

Likes
0
Downloads
29
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Headfirst ejb Headfirst ejb Document Transcript

    • Table of Contents Chapter 1. Welcome to EJB.......................................................................... 1 Section 1.1. OBJECTIVES............................................................................................................................................................... 2 Section 1.2. What is EJB all about?................................................................................................................................................. 3 Section 1.3. What does EJB really give me?................................................................................................................................... 4 Section 1.4. No more vendor lock-in!............................................................................................................................................. 5 Section 1.5. There are no Dumb Questions.................................................................................................................................... 6 Section 1.6. How does it all work?................................................................................................................................................... 7 Section 1.7. Behind the scenes........................................................................................................................................................ 8 Section 1.8. Sharpen your pencil................................................................................................................................................... 10 Section 1.9. Beans come in three flavors....................................................................................................................................... 11 Section 1.10. Session beans can be stateless or stateful................................................................................................................ 12 Section 1.11. There are no Dumb Question................................................................................................................................... 12 Section 1.12. Sharpen your pencil.................................................................................................................................................. 13 Section 1.13. Overheard at! THE TIKIBEAN LOUNGE................................................................................................................ 14 Section 1.14. Example: The Advice Guy bean................................................................................................................................ 15 Section 1.15. Five things you do to build a bean:.......................................................................................................................... 16 Section 1.16. EJB Roles and Responsibilities............................................................................................................................... 26 Section 1.17. Tutorial:.................................................................................................................................................................... 28 Section 1.18. Organize your project directory............................................................................................................................... 29 Section 1.19. Compile the two interfaces and the bean class....................................................................................................... 30 Section 1.20. Start the server......................................................................................................................................................... 31 Section 1.21. You'll see something like this................................................................................................................................... 31 Section 1.22. Start deploytool....................................................................................................................................................... 32 Section 1.23. you'll see something like this................................................................................................................................... 32 Section 1.24. Make a new Application.......................................................................................................................................... 33 Section 1.25. There are no Dumb Questions................................................................................................................................ 33 Section 1.26. Name and save the new application........................................................................................................................ 34 Section 1.27. What you'll see af ter you create and name the application................................................................................... 35 Section 1.28. Now let's make the new enterprise bean (the ejb-jar and the DD)........................................................................ 36 Section 1.29. Now we're in the really cool New Enterprise Bean Wizard.................................................................................... 37 Section 1.30. Create the new ejb-jar............................................................................................................................................. 38 Section 1.31. Add the three class files (including their package directory) to the JAR............................................................... 39 Section 1.32. Confirm that you added ONLY the package directory and the class files.............................................................. 40 Section 1.33. Make it a Stateless Session bean.............................................................................................................................. 41 Section 1.34. Tell it which of the three class files in the JAR is the actual BEAN class............................................................... 42 Section 1.35. Tell it which is the Home interface, and which is the Component interface......................................................... 43 Section 1.36. Verify everything on this screen!............................................................................................................................ 44 Section 1.37. You're done, click Finish.......................................................................................................................................... 45 Section 1.38. Meanwhile back on the main deploytool screen.................................................................................................... 46 Section 1.39. Run your bean through the deploytool verifier...................................................................................................... 47 Section 1.40. Close your eyes and click OK.................................................................................................................................. 48 Section 1.41. Whew! No failed tests.............................................................................................................................................. 49 Section 1.42. Time to Deploy........................................................................................................................................................ 50 Section 1.43. Make it Return a Client Jar...................................................................................................................................... 51 Section 1.44. Give it a name, so clients can look it up.................................................................................................................. 52 Section 1.45. Watch the progress bars go up, then celebrate....................................................................................................... 53 Section 1.46. Now you'll see the AdviceApp inside the server..................................................................................................... 54 Section 1.47. Now all we need is a client....................................................................................................................................... 55 Section 1.48. Organizing your project directory for the client..................................................................................................... 56 Section 1.49. The Client Code (AdviceClient.java)....................................................................................................................... 57 Section 1.50. Run the client!......................................................................................................................................................... 58 Section 1.51. COFFEE CRAM........................................................................................................................................................ 59 Section 1.52. COFFEE CRAM....................................................................................................................................................... 60 Chapter 1. Welcome to EJB Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 1 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 2 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 1. Welcome to EJB Page 3 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 4 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 5 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 6 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 7 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 8 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 9 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 10 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 11 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 12 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 13 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 14 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 15 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 16 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 17 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 18 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 19 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 20 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 21 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 22 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 23 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 24 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 25 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 26 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 27 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 28 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 29 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 30 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 31 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 32 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 33 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 34 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 35 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 36 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 37 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 38 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 39 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 40 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 41 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 42 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 43 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 44 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 45 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 46 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 47 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 48 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 49 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 50 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 51 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 52 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 53 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 54 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 55 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 56 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 57 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 58 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 59 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 1. Welcome to EJB Page 60 Return to Table of Contents Chapter 1. Welcome to EJB Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Chapter 2. EJB Architecture........................................................................ 1 Section 2.1. objectives Background................................................................................................................................................. 2 Section 2.2. You remember this picture......................................................................................................................................... 3 Section 2.3. Making a remote method call..................................................................................................................................... 4 Section 2.4. There's a "helper" on the server as well...................................................................................................................... 5 Section 2.5. There are no dumb questions..................................................................................................................................... 6 Section 2.6. What about and return values arguments?................................................................................................................ 7 Section 2.7. What really gets passed when you pass an object to a remote method?.................................................................... 9 Section 2.8. There are no Dumb Questions.................................................................................................................................. 12 Section 2.9. Passing a Remote object through a remote method call.......................................................................................... 14 Section 2.10. Brain power.............................................................................................................................................................. 15 Section 2.11. There are no Dumb Question................................................................................................................................... 17 Section 2.12. What must the Remote object and the stub have in common?.............................................................................. 19 Section 2.13. The client calls business methods on the stub through the Remote business interface....................................... 20 Section 2.14. Sharpen your pencil................................................................................................................................................. 21 Section 2.15. How EJB uses RMI.................................................................................................................................................. 22 Section 2.16. The Remote object is not the bean, it's the bean's bodyguard—the EJBObject .................................................... 23 Section 2.17. The Component interface........................................................................................................................................ 24 Section 2.18. There are no Dumb Questions................................................................................................................................ 26 Section 2.19. Who writes the class that really DOES implement the component interface? In other words, who makes the EJBObject class?........................................................................................................................................................................... 28 Section 2.20. Who creates what?.................................................................................................................................................. 29 Section 2.21. THE TIKIBEAN LOUNGE...................................................................................................................................... 30 Section 2.22. There are no Dumb Questions................................................................................................................................ 31 Section 2.23. Sharpen your pencil................................................................................................................................................ 37 Section 2.24. Architectural over view: Session beans.................................................................................................................. 39 Section 2.25. Architectural overview: Entity beans..................................................................................................................... 40 Section 2.26. Architectural overview : Creating a Stateful Session bean..................................................................................... 41 Section 2.27. Architectural overview: Creating a Stateless Session bean.................................................................................... 42 Section 2.28. Who creates the stateless session bean, and when?.............................................................................................. 43 Section 2.29. Stateless session beans are more scalable.............................................................................................................. 44 Section 2.30. Brain power............................................................................................................................................................. 45 Section 2.31. there are no Dumb Questions................................................................................................................................. 45 Section 2.32. Sharpen your pencil................................................................................................................................................ 45 Section 2.33. There are no Dumb Questions................................................................................................................................ 46 Section 2.34. Architectural over view: Message-driven beans..................................................................................................... 47 Section 2.35. Exercise: What goes where?................................................................................................................................... 48 Section 2.36. Exercise: Organize your beans................................................................................................................................ 49 Section 2.37. Exercise Solutions: What goes where?................................................................................................................... 50 Chapter 2. EJB Architecture Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 1 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 2 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 2. EJB Architecture Page 3 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 4 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 5 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 6 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 7 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 8 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 9 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 10 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 11 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 12 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 13 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 14 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 15 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 16 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 17 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 18 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 19 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 20 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 21 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 22 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 23 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 24 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 25 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 26 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 27 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 28 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 29 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 30 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 31 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 32 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 33 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 34 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 35 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 36 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 37 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 38 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 39 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 40 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 41 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 42 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 43 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 44 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 45 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 46 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • D EM O Chapter 2. EJB Architecture Page 47 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 48 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 49 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 50 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 2. EJB Architecture Page 51 Return to Table of Contents Chapter 2. EJB Architecture Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Chapter 3. Exposing Yourself...................................................................... 1 Section 3.1. Objectives..................................................................................................................................................................... 2 Section 3.2. What the client really wants........................................................................................................................................ 3 Section 3.3. It all starts with the home interface............................................................................................................................ 4 Section 3.4. There are no Dumb Questions.................................................................................................................................... 4 Section 3.5. How a client uses a session bean: create, use, and remove........................................................................................ 5 Section 3.6. But first, we have to get a home interface reference.................................................................................................. 6 Section 3.7. What's JNDI?.............................................................................................................................................................. 6 Section 3.8. Getting the home interface stub................................................................................................................................. 7 Section 3.9. There are no Dumb Questions.................................................................................................................................... 8 Section 3.10. Let's take another look at the complete client code.................................................................................................. 9 Section 3.11. Sharpen your pencil................................................................................................................................................... 9 Section 3.12. Just when you thought a simple cast would be enough.......................................................................................... 10 Section 3.13. But NO. You have to narrow the object as well!...................................................................................................... 10 Section 3.14. OK, I'll bite. Why can't you just do a plain old cast ?.............................................................................................. 10 Section 3.15. PortableRemoteObject.narrow().............................................................................................................................. 11 Section 3.16. Think of narrowing as "Exotic Casting".................................................................................................................. 12 Section 3.17. Now that we (finally) have the home stub, let's use it to get what we REALLY want............................................ 13 Section 3.18. There are no Dumb Questions................................................................................................................................. 14 Section 3.19. Writing the Remote home interface for a session bean.......................................................................................... 15 Section 3.20. Remote home interface examples for session beans.............................................................................................. 16 Section 3.21. If you're a client, and you want to........................................................................................................................... 19 Section 3.22. Sharpen your pencil................................................................................................................................................ 22 Section 3.23. But enough about the home... let's talk about the EJB object. The component interface. The thing you REALLY want............................................................................................................................................................................................... 23 Section 3.24. Imagine what else you might want to do with your EJB object reference............................................................. 25 Section 3.25. Online shopping should not be rushed.................................................................................................................. 28 Section 3.26. Thankfully, we've got handles................................................................................................................................. 29 Section 3.27. isIdentical ?: how to find out if two stubs refer to the same bean.......................................................................... 31 Section 3.28. There are no Dumb Questions................................................................................................................................ 33 Section 3.29. A bean's client interfaces can be local .................................................................................................................... 35 Section 3.30. BRAIN POWER....................................................................................................................................................... 35 Section 3.31. Sharpen your pencil................................................................................................................................................. 37 Section 3.32. Which methods make sense for the local client interfaces?.................................................................................. 38 Section 3.33. When you think handle , think Remote.................................................................................................................. 39 Section 3.34. Who needs EJBMetaData when you've got reflection?.......................................................................................... 39 Section 3.35. Do you need isIdentical() when there's equals() ?................................................................................................. 40 Section 3.36. Why so many remove methods?............................................................................................................................. 41 Section 3.37. How can you use a remove that takes a handle when you don't have a handle?................................................... 43 Section 3.38. There are no Dumb Questions................................................................................................................................ 43 Section 3.39. Comparing Remote vs. Local interfaces................................................................................................................. 44 Section 3.40. Sharpen your pencil................................................................................................................................................ 45 Section 3.41. Writing the local client interfaces........................................................................................................................... 46 Section 3.42. You can have both a Remote and local client view for a bean, but you probabl won't.......................................... 47 Section 3.43. Sharpen your pencil................................................................................................................................................ 48 Section 3.44. Exceptions in client interfaces: what the client might get..................................................................................... 49 Section 3.45. Local client code...................................................................................................................................................... 50 Section 3.46. BRAIN POWER: What has to change inside the bean class?................................................................................. 51 Section 3.47. Arguments to Remote vs. local methods................................................................................................................ 53 Section 3.48. There are no Dumb Questions................................................................................................................................ 54 Section 3.49. Exercise: BE the Container..................................................................................................................................... 55 Section 3.50. Exercise Solutions: BE the Container..................................................................................................................... 57 Section 3.51. COFFEE CRAM....................................................................................................................................................... 58 Section 3.52. COFFEE CRAM....................................................................................................................................................... 60 Chapter 3. Exposing Yourself Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 1 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 2 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 3. Exposing Yourself Page 3 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 4 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 5 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 6 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 7 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 8 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 9 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 10 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 11 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 12 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 13 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 14 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 15 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 16 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 17 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 18 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 19 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 20 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 21 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 22 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 23 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 24 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 25 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 26 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 27 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 28 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 29 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 30 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 31 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 32 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 33 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 34 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 35 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 36 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 37 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 38 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 39 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 40 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 41 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 42 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 43 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 44 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 45 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 46 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 47 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 48 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 49 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 50 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 51 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 52 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 53 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 54 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 55 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 56 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 57 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 58 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 59 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 60 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 3. Exposing Yourself Page 61 Return to Table of Contents Chapter 3. Exposing Yourself Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Chapter 4. Being a Session Bean.................................................................. 1 Section 4.1. OBJECTIVES: Session Beans...................................................................................................................................... 2 Section 4.2. Exploring the session bean lifecycle........................................................................................................................... 4 Section 4.3. You remember how it all works, right ? Getting and using a stateful session bean.................................................. 6 Section 4.4. Stateful Session Bean, CREATION............................................................................................................................. 7 Section 4.5. There's obviously more to the bean's lifecycle than just creation and business methods......................................... 8 Section 4.6. Container Callbacks, for the special moments in a bean's life................................................................................... 9 Section 4.7. Container Callbacks come from TWO places:.......................................................................................................... 10 Section 4.8. Implementing the container callbacks...................................................................................................................... 11 Section 4.9. There are no Dumb Questions.................................................................................................................................. 14 Section 4.10. Sharpen your pencil................................................................................................................................................. 14 Section 4.11. Sharpen your pencil.................................................................................................................................................. 15 Section 4.12. Bean creation: when an object becomes a bean...................................................................................................... 16 Section 4.13. Bean things you can do during creation: stateful session bean)............................................................................ 24 Section 4.14. Bean Use: what happens AFTER creation.............................................................................................................. 26 Section 4.15. Bean things you can do within business methods:................................................................................................. 27 Section 4.16. Passivation: a stateful bean's chance at scalability................................................................................................. 28 Section 4.17. There are no Dumb Questions................................................................................................................................ 30 Section 4.18. Your job for passivation: make your state passivatable!........................................................................................ 31 Section 4.19. There are no Dumb Questions................................................................................................................................ 33 Section 4.20. Sharpen your pencil................................................................................................................................................ 33 Section 4.21. Bean things you can do in ejbActivate and ejbPassivate()..................................................................................... 35 Section 4.22. Bean Removal: when beans die.............................................................................................................................. 36 Section 4.23. Complaints about bean removal............................................................................................................................. 41 Section 4.24. Bean things you can do in ejbRemove()................................................................................................................. 44 Section 4.25. Implementing the AdviceBean as a stateFUL bean............................................................................................... 45 Section 4.26. BRAIN POWER....................................................................................................................................................... 45 Section 4.27. Things you can add if the bean is stateFUL............................................................................................................ 45 Section 4.28. There are no Dumb Questions................................................................................................................................ 45 Section 4.29. AdviceStatefulBean code........................................................................................................................................ 46 Section 4.30. AdviceStatefulBean CLIENT code.......................................................................................................................... 47 Section 4.31. Sharpen your pencil................................................................................................................................................ 48 Section 4.32. Deploying a stateful bean....................................................................................................................................... 49 Section 4.33. Compared to stateful beans, stateless beans have a simple life............................................................................. 50 Section 4.34. Bean things you can do from stateless bean methods............................................................................................ 56 Section 4.35. Writing a Session Bean:your job as Bean Provider................................................................................................ 58 Section 4.36. Sharpen your pencil................................................................................................................................................ 59 Section 4.37. Sharpen your pencil: Who does What?................................................................................................................... 67 Section 4.38. SessionContext : You need it more than it needs you............................................................................................ 68 Section 4.39. Overheard at THE TiKiBEAN LoUNGE................................................................................................................. 70 Section 4.40. What's allowed?....................................................................................................................................................... 71 Section 4.41. COFFEE CRAM: Mock Exam.................................................................................................................................. 72 Section 4.42. COFFEE CRAM: Mock Exam Answers................................................................................................................... 79 Chapter 4. Being a Session Bean Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 1 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 2 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 4. Being a Session Bean Page 3 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 4 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 5 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 6 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 7 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 8 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 9 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 10 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 11 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 12 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 13 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 14 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 15 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 16 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 17 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 18 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 19 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 20 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 21 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 22 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 23 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 24 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 25 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 26 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 27 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 28 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 29 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 30 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 31 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 32 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 33 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 34 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 35 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 36 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 37 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 38 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 39 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 40 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 41 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 42 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 43 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 44 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 45 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 46 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 47 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 48 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 49 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 50 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 51 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 52 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 53 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 54 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 55 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 56 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 57 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 58 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 59 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 60 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 61 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 62 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 63 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 64 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 65 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 66 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 67 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 68 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 69 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 70 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 71 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 72 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 73 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 74 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 75 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 76 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 77 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 78 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 79 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 80 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 81 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 82 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 83 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 84 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 4. Being a Session Bean Page 85 Return to Table of Contents Chapter 4. Being a Session Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Chapter 5. Entities Are Persistent................................................................ 1 Section 5.1. OBJECTIVES: Entity Beans........................................................................................................................................ 2 Section 5.2. What's an entity bean?................................................................................................................................................ 3 Section 5.3. Entities vs. Entity Beans............................................................................................................................................. 4 Section 5.4. There are no Dumb Questions.................................................................................................................................... 5 Section 5.5. There are no Dumb Questions.................................................................................................................................... 6 Section 5.6. Entity beans from the client's point of view............................................................................................................... 7 Section 5.7. Entity bean overview................................................................................................................................................... 8 Section 5.8. Entity bean overview................................................................................................................................................... 9 Section 5.9. A very simple Customer entity bean......................................................................................................................... 10 Section 5.10. An entity bean's client view...................................................................................................................................... 11 Section 5.11. Entity bean Remote component interface............................................................................................................... 12 Section 5.12. Entity bean Remote component interface............................................................................................................... 13 Section 5.13. Rules for the Remote component interface............................................................................................................. 14 Section 5.14. Entity bean Remote home interface........................................................................................................................ 15 Section 5.15. What does the client really want from an entity bean home?................................................................................. 16 Section 5.16. Entity bean Remote component interface............................................................................................................... 17 Section 5.17. When finders have a dark side................................................................................................................................. 18 Section 5.18. There are no Dumb Questions................................................................................................................................. 19 Section 5.19. Home business methods to the rescue................................................................................................................... 20 Section 5.20. Rules for the Remote home interface..................................................................................................................... 21 Section 5.21. Sharpen your pencil................................................................................................................................................. 22 Section 5.22. Session bean create() vs. entity bean create()........................................................................................................ 23 Section 5.23. Session bean remove() vs. entity bean remove().................................................................................................... 24 Section 5.24. Entity/bean/instance death.................................................................................................................................... 27 Section 5.25. Client calls remove()............................................................................................................................................... 28 Section 5.26. Entity bean client view............................................................................................................................................ 29 Section 5.27. COFFEE CRAM....................................................................................................................................................... 30 Section 5.28. COFFEE CRAM....................................................................................................................................................... 33 Chapter 5. Entities Are Persistent Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 1 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 2 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 5. Entities Are Persistent Page 3 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 4 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 5 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 6 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 7 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 8 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 9 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 10 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 11 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 12 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 13 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 14 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 15 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 16 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 17 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 18 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 19 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 20 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 21 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 22 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 23 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 24 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 25 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 26 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 27 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 28 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 29 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 30 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 31 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 32 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 33 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 34 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 5. Entities Are Persistent Page 35 Return to Table of Contents Chapter 5. Entities Are Persistent Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Chapter 6. Being an Entity Bean.................................................................. 1 Section 6.1. OBJECTIVES............................................................................................................................................................... 2 Section 6.2. The real power of entity beans is synchronization..................................................................................................... 4 Section 6.3. Oh no!: The entity bean and the entity it represents have different data!................................................................. 5 Section 6.4. How the entity bean and the underlying entity stay synchronized............................................................................ 7 Section 6.5. The only question is WHO does the work when it's time to synchronize.................................................................. 8 Section 6.6. Container-managed vs. bean-managed persistence.................................................................................................. 9 Section 6.7. there are no Dumb Questions................................................................................................................................... 10 Section 6.8. Off the path: A brief history on the evolution of CMP 2.0........................................................................................ 11 Section 6.9. The EntityBean interface adds three new container callbacks (including two just for synchronization)............... 16 Section 6.10. Even the methods that are the same, don't behave the same................................................................................. 17 Section 6.11. But wait... there's more! Entity beans have new home container callbacks , too................................................... 18 Section 6.12. Writing a CMP entity bean: make it abstract ......................................................................................................... 19 Section 6.13. You put three kinds of things in your bean class:................................................................................................... 20 Section 6.14. PLUS... (ok, that's four things...)............................................................................................................................. 21 Section 6.15. Virtual fields are NOT instance variables!.............................................................................................................. 22 Section 6.16. Sharpen your penil.................................................................................................................................................. 23 Section 6.17. Complete code for the CustomerBeanCMP class.................................................................................................... 24 Section 6.18. Sharpen your pencil................................................................................................................................................ 25 Section 6.19. Entity bean instance lifecycle.................................................................................................................................. 26 Section 6.20. Entity bean instance transitions............................................................................................................................. 27 Section 6.21. there are no Dumb Questions................................................................................................................................. 28 Section 6.22. Sharpen your pencil................................................................................................................................................ 29 Section 6.23. Sharpen your pencil................................................................................................................................................ 30 Section 6.24. So how DID the client get a reference to the EJB object for #28?......................................................................... 31 Section 6.25. Bean things you can do during entity construction:.............................................................................................. 33 Section 6.26. CMP Entity bean creation....................................................................................................................................... 34 Section 6.27. Creating a new entity bean: CMP entity bean........................................................................................................ 35 Section 6.28. CMP Entity bean creation....................................................................................................................................... 36 Section 6.29. Implement your ejbCreate() methods.................................................................................................................... 37 Section 6.30. Object identity: the primary key............................................................................................................................. 38 Section 6.31. Implement your ejbPostCreate() methods............................................................................................................. 40 Section 6.32. BRAIN POWER....................................................................................................................................................... 41 Section 6.33. Bean things you can do during entity creation:..................................................................................................... 44 Section 6.34. CMP Entity finder................................................................................................................................................... 45 Section 6.35. Finding an existing entity....................................................................................................................................... 46 Section 6.36. CMP Entity bean finders......................................................................................................................................... 47 Section 6.37. YOU don't implement the Finder methods!........................................................................................................... 48 Section 6.38. CMP Home Business Methods................................................................................................................................ 51 Section 6.39. Client invokes a Home Business Method............................................................................................................... 52 Section 6.40. Bean things you can do in home business methods............................................................................................... 53 Section 6.41. Starting a business method (in a transaction)........................................................................................................ 54 Section 6.42. Completing a business method (and a transaction)............................................................................................... 55 Section 6.43. Being John Entity Bean.......................................................................................................................................... 56 Section 6.44. Activation/passivation of a CMP entity bean......................................................................................................... 58 Section 6.45. Sharpen your pencil................................................................................................................................................ 59 Section 6.46. Bean things you can do during activation and loading.......................................................................................... 60 Section 6.47. Bean things you can do during passivation and storing......................................................................................... 61 Section 6.48. Commit options: what REALLY happens to a bean after a transaction commits?............................................... 62 Section 6.49. There are no Dumb Questions................................................................................................................................ 63 Section 6.50. Exercise: CMP entity bean Creation....................................................................................................................... 65 Section 6.51. Exercise: Entity Bean Business Method (with activation & passivation).............................................................. 66 Section 6.52. Exercise................................................................................................................................................................... 67 Section 6.53. COFFEE CRAM....................................................................................................................................................... 68 Section 6.54. COFFEE CRAM....................................................................................................................................................... 73 Chapter 6. Being an Entity Bean Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 1 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 2 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 6. Being an Entity Bean Page 3 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 4 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 5 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 6 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 7 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 8 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 9 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 10 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 11 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 12 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 13 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 14 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 15 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 16 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 17 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 18 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 19 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 20 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 21 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 22 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 23 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 24 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 25 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 26 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 27 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 28 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 29 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 30 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 31 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 32 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 33 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 34 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 35 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 36 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 37 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 38 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 39 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 40 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 41 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 42 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 43 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 44 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 45 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 46 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 47 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 48 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 49 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 50 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 51 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 52 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 53 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 54 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 55 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 56 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 57 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 58 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 59 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 60 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 61 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 62 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 63 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 64 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 65 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 66 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 67 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 68 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 69 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 70 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 71 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 72 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 73 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 74 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 75 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 76 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 6. Being an Entity Bean Page 77 Return to Table of Contents Chapter 6. Being an Entity Bean Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Chapter 7. When Beans Relate.................................................................... 2 Section 7.1. OBJECTIVES: Entity Relationships: CMP and CMR................................................................................................. 3 Section 7.2. Beanifying your movie database................................................................................................................................. 4 Section 7.3. But we don't want to think in TABLES We want to think in CLASSES..................................................................... 5 Section 7.4. We need relationships between the Movie bean and the Director............................................................................. 7 Section 7.5. Why should the Director be a bean? Why can't it just be data?................................................................................. 8 Section 7.6. Relationships and multiplicity.................................................................................................................................... 9 Section 7.7. Multiplicity in Bean Classes...................................................................................................................................... 10 Section 7.8. Multiplicity affects return type !................................................................................................................................ 11 Section 7.9. You need a pair of abstract getters and setters for each CMP field (column values) and each CMR field (relationship with another entity)....................................................................................................................................................................... 12 Section 7.10. Defining your "abstract persistence schema" (virtual fields aren't enough).......................................................... 13 Section 7.11. The Container needs these TWO things to know you have a CMP field "title"....................................................... 13 Section 7.12. Persistent CMP fields in the DD.............................................................................................................................. 14 Section 7.13. there are no Dumb Questions.................................................................................................................................. 14 Section 7.14. Using relationships in your code............................................................................................................................. 15 Section 7.15. Defining relationships in your abstract persistence schema (in the DD)............................................................... 16 Section 7.16. Relationship definition for the Director-to-Movie relationship............................................................................. 17 Section 7.17. Sharpen your pencil................................................................................................................................................. 19 Section 7.18. Director-to-Movie relationship............................................................................................................................... 19 Section 7.19. Relationships can be one-way ( unidirectional)..................................................................................................... 20 Section 7.20. The dark side of a unidirectional (one-way) relationship...................................................................................... 21 Section 7.21. Cascade delete can propagate.................................................................................................................................. 22 Section 7.22. Director-to-Movie relationship............................................................................................................................... 22 Section 7.23. Movie-to-Trailer relationship................................................................................................................................. 22 Section 7.24. The abstract schema> element is in the <entity> element and the <ejb-relation> is in the <relationships..... 23 Section 7.25. MovieBean with a CMR code field.......................................................................................................................... 25 Section 7.26. The MovieBean's home interface............................................................................................................................ 27 Section 7.27. Mapping from abstract schema to a real database................................................................................................. 29 Section 7.28. Writing your portable queries, for select and finder methods............................................................................... 30 Section 7.29. EJB-QL for the MovieBean..................................................................................................................................... 31 Section 7.30. Using an optional WHERE clause.......................................................................................................................... 32 Section 7.31. Navigating to another related bean......................................................................................................................... 33 Section 7.32. Selecting a value rather than the whole bean......................................................................................................... 34 Section 7.33. EJB-QL SELECT..................................................................................................................................................... 35 Section 7.34. EJB-QL SELECT—when to use Object ()............................................................................................................... 36 Section 7.35. Sharpen your pencil................................................................................................................................................ 36 Section 7.36. What does it MEAN to return an abstract schema type?....................................................................................... 37 Section 7.37. SELECT and FROM are mandatory !..................................................................................................................... 38 Section 7.38. Identifiers................................................................................................................................................................ 39 Section 7.39. The WHERE clause................................................................................................................................................. 40 Section 7.40. The WHERE clause................................................................................................................................................. 41 Section 7.41. The problem with using Collection types................................................................................................................ 42 Section 7.42. Collections don't bark() !........................................................................................................................................ 43 Section 7.43. The IN operator lets you say "For an individual element IN the Collection..."..................................................... 44 Section 7.44. The BETWEEN expression..................................................................................................................................... 45 Section 7.45. The other "IN"......................................................................................................................................................... 46 Section 7.46. The IS EMPTY comparison expression.................................................................................................................. 47 Section 7.47. The IS NOT EMPTY comparison expression.......................................................................................................... 47 Section 7.48. The LIKE expression............................................................................................................................................... 48 Section 7.49. The NOT LIKE expression...................................................................................................................................... 49 Section 7.50. Relationship assignments........................................................................................................................................ 51 Section 7.51. If the multiplicity of the relationship field is ONE, it's a MOVE If the multiplicity is MANY, it's a COPY........... 52 Section 7.52. Exercise: Multiplicity and Assignments................................................................................................................. 52 Section 7.53. Solution: Multiplicity and Assignments................................................................................................................. 53 Section 7.54. COFFEE CRAM....................................................................................................................................................... 54 Chapter 7. When Beans Relate Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Section 7.55. COFFEE CRAM....................................................................................................................................................... 60 Chapter 7. When Beans Relate Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 1 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 2 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 7. When Beans Relate Page 3 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 4 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 5 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 6 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 7 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 8 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 9 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 10 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 11 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 12 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 13 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 14 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 15 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 16 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 17 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 18 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 19 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 20 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 21 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 22 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 23 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 24 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 25 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 26 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 27 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 28 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 29 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 30 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 31 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 32 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 33 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 34 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 35 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 36 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 37 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 38 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 39 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 40 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 41 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 42 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 43 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 44 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 45 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 46 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 47 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 48 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 49 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 50 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 51 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 52 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 53 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 54 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 55 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 56 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 57 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 58 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 59 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 60 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 61 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 62 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 63 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 64 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 7. When Beans Relate Page 65 Return to Table of Contents Chapter 7. When Beans Relate Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Chapter 8. Getting the Message................................................................... 1 Section 8.1. OBJECTIVES............................................................................................................................................................... 2 Section 8.2. Imagine this scenario.................................................................................................................................................. 3 Section 8.3. Too bad these guys aren't message-driven beans....................................................................................................... 5 Section 8.4. Message-driven bean class........................................................................................................................................ 10 Section 8.5. Writing a message-driven bean: your job as Bean Provider..................................................................................... 11 Section 8.6. Sharpen your pencil................................................................................................................................................... 11 Section 8.7. Notice something missing from the code?................................................................................................................ 13 Section 8.8. Complete DD for a message-driven bean................................................................................................................. 13 Section 8.9. Topics and Queues.................................................................................................................................................... 14 Section 8.10. There are no: Dumb Questions............................................................................................................................... 16 Section 8.11. Only ONE bean per pool gets a copy of a topic message......................................................................................... 17 Section 8.12. With a queue, only one bean gets the message. Period.......................................................................................... 18 Section 8.13. MessageDrivenContext............................................................................................................................................ 19 Section 8.14. MessageDrivenContext........................................................................................................................................... 20 Section 8.15. message acknowledgement..................................................................................................................................... 22 Section 8.16. That's all well and good, but let's go back and see how our earlier scenario ended.............................................. 23 Section 8.17. Off the path: Think about it..................................................................................................................................... 24 Section 8.18. COFFEE CRAM....................................................................................................................................................... 27 Section 8.19. COFFEE CRAM....................................................................................................................................................... 30 Chapter 8. Getting the Message Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 1 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 2 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 8. Getting the Message Page 3 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 4 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 5 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 6 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 7 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 8 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 9 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 10 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 11 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 12 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 13 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 14 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 15 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 16 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 17 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 18 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 19 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 20 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 21 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 22 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 23 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 24 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 25 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 26 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 27 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 28 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 29 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 30 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 31 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 8. Getting the Message Page 32 Return to Table of Contents Chapter 8. Getting the Message Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Chapter 9. The Atomic Age.......................................................................... 1 Section 9.1. OBJECTIVES............................................................................................................................................................... 2 Section 9.2. An EJB transaction is an atomic unit of work............................................................................................................ 3 Section 9.3. The ACID test.............................................................................................................................................................. 4 Section 9.4. Distributed transactions: two-phase commit............................................................................................................. 5 Section 9.5. How it works in EJB.................................................................................................................................................... 6 Section 9.6. Some transactions don't propagate............................................................................................................................ 7 Section 9.7. How do I make (or get) a transaction?....................................................................................................................... 8 Section 9.8. Transaction-related methods are in two interfaces................................................................................................... 9 Section 9.9. BRAIN POWER........................................................................................................................................................... 9 Section 9.10. Making a BMT transaction...................................................................................................................................... 10 Section 9.11. Call stack of the checkOut() method........................................................................................................................ 11 Section 9.12. Sharpen your pencil................................................................................................................................................. 12 Section 9.13. Things you must NOT do with BMT........................................................................................................................ 13 Section 9.14. BMT transactions are one way: they can propagate out to a CMT bean, but no other transaction can propagate in to a BMT bean................................................................................................................................................................................ 14 Section 9.15. What does it mean to suspend a transaction?......................................................................................................... 15 Section 9.16. The UserTransaction interface................................................................................................................................ 16 Section 9.17. setRollbackOnly( ): The sound of a transaction's death.......................................................................................... 17 Section 9.18. setRollbackOnly() lives in TWO interfaces............................................................................................................. 19 Section 9.19. getRollbackOnly():.................................................................................................................................................. 20 Section 9.20. BMT beans use getStatus() instead of getRollbackOnly()...................................................................................... 21 Section 9.21. BMT can be a really BAD idea. BMT hurts bean reuse.......................................................................................... 22 Section 9.22. Container-managed transactions........................................................................................................................... 23 Section 9.23. How attributes work............................................................................................................................................... 24 Section 9.24. Know your attributes.............................................................................................................................................. 25 Section 9.25. Transaction attributes that require a transaction.................................................................................................. 26 Section 9.26. Sharpen your pencil: Know your attributes........................................................................................................... 28 Section 9.27. Sharpen your pencil................................................................................................................................................ 29 Section 9.28. These are the methods you MUST mark with an attribute (for a CMT bean)...................................................... 30 Section 9.29. "Unspecified Transaction Context"......................................................................................................................... 31 Section 9.30. Burn these in........................................................................................................................................................... 32 Section 9.31. Overheard at: THE TiKiBEAN LoUNGE................................................................................................................ 33 Section 9.32. Marking transactions in the DD............................................................................................................................. 34 Section 9.33. DD example for CMT.............................................................................................................................................. 35 Section 9.34. More DD examples for CMT................................................................................................................................... 36 Section 9.35. Sharpen your pencil: Which methods need transaction attributes?..................................................................... 39 Section 9.36. Summary of Bean-managed demarcation............................................................................................................. 40 Section 9.37. Entity beans have ejbLoad( ) to stay synchronized, even if the transaction rolls back......................................... 42 Section 9.38. Session Synchronization: because session beans don't have ejbLoad and ejbStore............................................. 43 Section 9.39. SessionSynchronization "special moments".......................................................................................................... 44 Section 9.40. There are no Dumb Questions................................................................................................................................ 45 Section 9.41. Pool Puzzle............................................................................................................................................................... 46 Section 9.42. Pool Puzzle Solution................................................................................................................................................ 47 Section 9.43. COFFEE CRAM....................................................................................................................................................... 48 Section 9.44. COFFEE CRAM....................................................................................................................................................... 52 Chapter 9. The Atomic Age Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 1 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 2 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 9. The Atomic Age Page 3 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 4 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 5 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 6 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 7 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 8 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 9 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 10 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 11 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 12 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 13 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 14 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 15 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 16 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 17 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 18 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 19 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 20 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 21 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 22 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 23 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 24 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 25 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 26 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 27 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 28 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 29 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 30 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 31 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 32 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 33 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 34 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 35 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 36 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 37 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 38 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 39 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 40 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 41 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 42 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 43 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 44 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 45 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 46 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 47 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 48 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 49 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 50 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 51 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 52 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 53 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 54 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 9. The Atomic Age Page 55 Return to Table of Contents Chapter 9. The Atomic Age Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Chapter 10. When beans go bad................................................................... 1 Section 10.1. OBJECTIVES............................................................................................................................................................. 2 Section 10.2. What can go wrong?.................................................................................................................................................. 3 Section 10.3. Remember, Java exceptions can be checked or unchecked..................................................................................... 4 Section 10.4. It's all about expectations.......................................................................................................................................... 5 Section 10.5. Exception pathways................................................................................................................................................... 6 Section 10.6. In EJB, exceptions come in two flavors: application and system............................................................................ 8 Section 10.7. With an Application Exception, the Container will.................................................................................................. 9 Section 10.8. With a System Exception, the Container will......................................................................................................... 10 Section 10.9. BRAIN POWER....................................................................................................................................................... 12 Section 10.10. Warning! RemoteException is checked, but not expected!.................................................................................. 13 Section 10.11. A Remote entity bean home interface declares application exceptions and one system exception (RemoteException)........................................................................................................................................................................ 14 Section 10.12. A local entity bean home interface declares only application exceptions............................................................. 14 Section 10.13. RemoteException goes to remote clients EJBException goes to local clients...................................................... 15 Section 10.14. there are no Dumb Questions................................................................................................................................ 16 Section 10.15. Bean Provider's responsibilities............................................................................................................................. 17 Section 10.16. Bean Provider's responsibilities............................................................................................................................ 18 Section 10.17. Bean Provider's responsibilities............................................................................................................................. 19 Section 10.18. Bean Provider's responsibilities............................................................................................................................ 20 Section 10.19. Bean Provider's responsibilities............................................................................................................................ 21 Section 10.20. there are no Dumb Questions............................................................................................................................... 21 Section 10.21. The Container's responsibilities............................................................................................................................ 22 Section 10.22. BRAIN POWER..................................................................................................................................................... 23 Section 10.23. Sharpen your pencil.............................................................................................................................................. 23 Section 10.24. The five standard EJB application exceptions..................................................................................................... 24 Section 10.25. The five standard application exceptions from the client's point of view............................................................ 25 Section 10.26. there are no Dumb Questions............................................................................................................................... 26 Section 10.27. Common system exceptions.................................................................................................................................. 27 Section 10.28. Common sysstem exceptions................................................................................................................................ 28 Section 10.29. Scenarios: what do you think happens?............................................................................................................... 32 Section 10.30. Sharpen your pencil.............................................................................................................................................. 33 Section 10.31. Scenario Summary................................................................................................................................................. 34 Section 10.32. Scenario Summary................................................................................................................................................ 35 Section 10.33. Scenario Summary................................................................................................................................................ 36 Section 10.34. Exercise.................................................................................................................................................................. 37 Section 10.35. Exercise................................................................................................................................................................. 38 Section 10.36. COFFEE CRAM..................................................................................................................................................... 39 Section 10.37. COFFEE CRAM..................................................................................................................................................... 42 Chapter 10. When beans go bad Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 1 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 2 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 10. When beans go bad Page 3 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 4 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 5 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 6 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 7 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 8 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 9 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 10 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 11 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 12 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 13 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 14 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 15 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 16 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 17 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 18 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 19 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 20 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 21 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 22 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 23 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 24 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 25 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 26 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 27 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 28 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 29 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 30 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 31 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 32 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 33 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 34 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 35 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 36 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 37 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 38 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 39 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 40 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 41 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 42 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 43 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 10. When beans go bad Page 44 Return to Table of Contents Chapter 10. When beans go bad Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Chapter 11. Protect Your Secrets.................................................................. 1 Section 11.1. OBJECTIVES.............................................................................................................................................................. 2 Section 11.2. Imagine you're writing a payroll application............................................................................................................ 3 Section 11.3. What can you do?....................................................................................................................................................... 4 Section 11.4. How to do security in EJB......................................................................................................................................... 5 Section 11.5. The Application Assembler's job: access control...................................................................................................... 6 Section 11.6. there are no Dumb Questions.................................................................................................................................... 7 Section 11.7. Sharpen your pencil................................................................................................................................................... 7 Section 11.8. Defining the roles....................................................................................................................................................... 8 Section 11.9. Defining the roles... a better way............................................................................................................................... 9 Section 11.10. Defining the method permissions.......................................................................................................................... 10 Section 11.11. Defining the method permissions........................................................................................................................... 11 Section 11.12. Method permissions interact with one another as a union !................................................................................. 12 Section 11.13. Watch out for <unchecked/>................................................................................................................................. 13 Section 11.14. The Deployer's job: mapping actual humans to abstract roles.............................................................................. 15 Section 11.15. Principals and Roles, Users and Groups................................................................................................................ 16 Section 11.16. Class-level vs. instance-level security.................................................................................................................... 18 Section 11.17. Using programmatic security to custom-tailor a method...................................................................................... 19 Section 11.18. The problem with isCallerInRole()........................................................................................................................ 20 Section 11.19. Map declarative security roles to the programmer's hard-coded (fake) roles...................................................... 21 Section 11.20. The complete security mapping picture................................................................................................................ 22 Section 11.21. Use <run-as > security identity to pretend someone else is calling...................................................................... 23 Section 11.22. Security context propagation with <run-as>........................................................................................................ 24 Section 11.23. COFFEE CRAM...................................................................................................................................................... 25 Section 11.24. COFFEE CRAM..................................................................................................................................................... 28 Chapter 11. Protect Your Secrets Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 1 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 2 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 11. Protect Your Secrets Page 3 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 4 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 5 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 6 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 7 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 8 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 9 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 10 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 11 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 12 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 13 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 14 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 15 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 16 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 17 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 18 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 19 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 20 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 21 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 22 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 23 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 24 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 25 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 26 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 27 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 28 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 29 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 11. Protect Your Secrets Page 30 Return to Table of Contents Chapter 11. Protect Your Secrets Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Chapter 12. The Joy of Deployment.............................................................. 1 Section 12.1. OBJECTIVES............................................................................................................................................................. 2 Section 12.2. A bean's special place- java:comp/env...................................................................................................................... 4 Section 12.3. But it's not per bean instance... It's per bean home.................................................................................................. 5 Section 12.4. Environment subcontexts......................................................................................................................................... 6 Section 12.5. brain power................................................................................................................................................................ 7 Section 12.6. It's simple.................................................................................................................................................................. 8 Section 12.7. Environment entries: deploy-time constants........................................................................................................... 9 Section 12.8. there are no Dumb Questions................................................................................................................................. 10 Section 12.9. It's subcontexts all the way down............................................................................................................................. 11 Section 12.10. Resource manager connection factories (think: database)................................................................................... 12 Section 12.11. The complete resource mapping picture................................................................................................................ 14 Section 12.12. EJB references (when a bean wants another bean)............................................................................................... 15 Section 12.13. there are no Dumb Questions................................................................................................................................ 16 Section 12.14. Using <ejb-link> with EJB references................................................................................................................... 17 Section 12.15. Resource environment references (think: JMS destinations).............................................................................. 18 Section 12.16. Bean Provider and Application Assembler............................................................................................................ 19 Section 12.17. Deployer responsibility for the Deployment Descriptor....................................................................................... 20 Section 12.18. Remembering who does what................................................................................................................................ 21 Section 12.19. Now let's look at the bean's runtime environment............................................................................................... 22 Section 12.20. Which APIs does EJB 2.0 guarantee?.................................................................................................................. 23 Section 12.21. Sharpen your pencil............................................................................................................................................... 23 Section 12.22. What MUST be in an ejb-jar?................................................................................................................................ 26 Section 12.23. Programming restrictions..................................................................................................................................... 27 Section 12.24. ExeRciSe: Memorize THIS.................................................................................................................................... 28 Section 12.25. COFFEE CRAM..................................................................................................................................................... 29 Section 12.26. COFFEE CRAM..................................................................................................................................................... 34 Chapter 12. The Joy of Deployment Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 1 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 2 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Chapter 12. The Joy of Deployment Page 3 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 4 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 5 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 6 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 7 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 8 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 9 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 10 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 11 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 12 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 13 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 14 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 15 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 16 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 17 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 18 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 19 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 20 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 21 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 22 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 23 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 24 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 25 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 26 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 27 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 28 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 29 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 30 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 31 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 32 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 33 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 34 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 35 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 36 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 37 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Chapter 12. The Joy of Deployment Page 38 Return to Table of Contents Chapter 12. The Joy of Deployment Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Table of Contents Appendix A. Final Mock Exam..................................................................... 1 Section A.1. COFFEE CRAM........................................................................................................................................................... 1 Section A.2. COFFEE CRAM.......................................................................................................................................................... 2 Section A.3. COFFEE CRAM: Master Mock Exam Answers........................................................................................................ 24 Section A.4. This isn't goodbye..................................................................................................................................................... 46 Section A.5. Cover Rough Drafts for the series............................................................................................................................. 47 Appendix A. Final Mock Exam Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 1 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 2 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited. Copyright Safari Books Online #896963
    • Appendix A. Final Mock Exam Page 3 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 4 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 5 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 6 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 7 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 8 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 9 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 10 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 11 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 12 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 13 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 14 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 15 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 16 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 17 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.
    • Appendix A. Final Mock Exam Page 18 Return to Table of Contents Appendix A. Final Mock Exam Head First EJB™ By Bert Bates, Kathy Sierra ISBN: 0596005717 Publisher: O'Reilly Prepared for Linda Martin, Safari ID: doannn16@yahoo.com Print Publication Date: 2003/10/01 User number: 896963 Copyright 2008, Safari Books Online, LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under U.S. copyright laws (see 17 USC107) or that otherwise violates the Safari Terms of Service is strictly prohibited.