Java developers typically go through four "stages" in mastering Java. In the first stage, they learn the language itself. In the second stage, they study the APIs. In the third stage, they become proficient in the environment. It is in the fourth stage --"the expert stage"-- where things really get interesting, and Java Enterprise Best Practices is the tangible compendium of experience that developers need to breeze through this fourth and final stage of Enterprise Java mastery.Crammed with tips and tricks, Java Enterprise Best Practices distills years of solid experience from eleven experts in the J2EE environment into a practical, to-the-point guide to J2EE.Java Enterprise Best Practices gives developers the unvarnished, expert-tested advice that the man pages don't provide--what areas of the APIs should be used frequently (and which are better avoided); elegant solutions to problems you face that other developers have already discovered; what things you should always do, what things you should consider doing, and what things you should never do--even if the documentation says it's ok.Until Java Enterprise Best Practices, Java developers in the fourth stage of mastery relied on the advice of a loose-knit community of fellow developers, time-consuming online searches for examples or suggestions for the immediate problem they faced, and tedious trial-and-error. But Java has grown to include a huge number of APIs, classes, and methods. Now it is simply too large for even the most intrepid developer to know it all. The need for a written compendium of J2EE Best Practices has never been greater.Java Enterprise Best Practices focuses on the Java 2 Enterprise Edition (J2EE) APIs. The J2EE APIs include such alphabet soup acronyms as EJB, JDBC, RMI, XML, and JMX.
Preface; Audience; Organization; Conventions Used in This Book; How to Contact Us; Acknowledgments; Chapter 1: Introduction to Java Enterprise Best Practices; 1.1 How Does a Best Practice Come About?; 1.2 Can Best Practices Be Arguable?; 1.3 What’s in This Book?; 1.4 About the Practices Themselves; 1.5 Enterprise Java Programming Resources Online; Chapter 2: EJB Best Practices; 2.1 Design; 2.2 Implementation; 2.3 Deployment and Packaging; Chapter 3: Servlet Best Practices; 3.1 Working Effectively with Servlets; 3.2 Caching with Servlets; 3.3 Other Servlet Tips; Chapter 4: JDBC Best Practices; 4.1 Configuration; 4.2 Design; 4.3 Code; 4.4 General Database; Chapter 5: XML Best Practices; 5.1 XML Authoring; 5.2 SAX; 5.3 DOM; 5.4 JAXP; Chapter 6: RMI Best Practices; 6.1 Marshalling and Unmarshalling Objects; 6.2 Making Applications More Robust; 6.3 Improving Application Performance; 6.4 Further Reading; Chapter 7: Java Management Extensions; 7.1 Naming; 7.2 Instrumentation; Chapter 8: Enterprise Internationalization; 8.1 Internationalization and Localization; 8.2 Presentation Layer; 8.3 Business Object Layer; 8.4 Data Access Layer; Chapter 9: JSP Best Practices; 9.1 Appropriate Usage of JSP in an Enterprise Application; 9.2 Page Design; 9.3 Caching; 9.4 Error Handling; 9.5 Custom Component Development; 9.6 Deployment; Chapter 10: JavaMail Best Practices; 10.1 Understanding Enterprise Email; 10.2 Sending Email; 10.3 Email for System Integration; 10.4 Performance Optimization; Chapter 11: Enterprise Performance Tuning Best Practices; 11.1 Performance Planning; 11.2 The Performance Environment; 11.3 Proactive Performance Management in Production; 11.4 Efficient Distributed Computing Architecture; 11.5 Tuning Procedure; 11.6 User Perceptions; 11.7 Tuning Techniques; 11.8 Miscellaneous Best Practices; Chapter 12: List of Contributors; Colophon;