Cargando…

Java Enterprise best practices /

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...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Otros Autores: Eckstein, Robert
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Beijing ; Sebastopol, CA : O'Reilly, 2002, ©2003.
Edición:1st ed.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Table of Contents; Preface; Audience; Organization; Conventions Used in This Book; How to Contact Us; Acknowledgments; Introduction to Java Enterprise Best Practices; How Does a Best Practice Come About?; Can Best Practices Be Arguable?; What's in This Book?; About the Practices Themselves; Enterprise Java Programming Resources Online; EJB Best Practices; Design; Know When to Use EJBs; Use Standard Design Architecture; Use CMP Entity Beans; Use Design Patterns; Session façade; Value objects; Implementation; Use Local Interfaces for Entity Beans; Use Business Interfaces
  • Handle Exceptions in EJB Code CorrectlyKnow When to Use Compound Primary Keys; Know How to Handle Large Queries; Use Dirty Flags in ejbStore; Use Lazy Loading; Cache JNDI Lookup Objects; Use Business Delegates for Clients; Write Dual CMP/BMP Entity Beans; Create Domain Object Factories; Deployment and Packaging; Create a Build Environment; Separate Components and Create Shared Libraries; Write Testing and Diagnostics Code; Servlet Best Practices; Working Effectively with Servlets; Choose the Right Servlet Framework; Tips for selecting a framework; High-profile frameworks
  • Use Pre-Encoded CharactersLoad Configuration Files from the Classpath; Think of Sessions as a Local Cache; Architecture of a shopping cart; When to use sessions; Don't Use SingleThreadModel; Caching with Servlets; Pregenerate Content Offline and Cache Like Mad; Pregeneration tools; Cache on the client; Cache at the proxy; Cache on the server; ...Or don't cache at all; Other Servlet Tips; Use Content-Disposition to Send a File; Hire a UI Designer; JDBC Best Practices; Configuration; Avoid Type 1 and Type 3 Drivers; When to use a Type 1 or Type 3 driver
  • Choosing between Type 2 and Type 4 driversUse DataSource Whenever Possible; Leverage Proprietary Connection Properties; Pool Database Connections; Design; Separate Application, Persistence, and JDBC Logic; Avoid Long-Lived Transactions; Do Not Rely on Built-in Key Generation; Don't Be Afraid to Use Optimistic Concurrency; Code; Use PreparedStatement; Leverage PreparedStatement Pooling; Question Using Nonstandard SQL; Delay Access to Metadata; Reference Columns by Number; Navigate a ResultSet Forward Only; Close Statements and Result Sets; Thread JDBC Code in Swing Applications
  • Minimize Database Calls and Perform Lazy-LoadingCache Lookup Tables; Use wasNull() Checks; General Database; Always Optimize SQL Before Other Optimizations; Do Not Store Binary Data in Database; Normalize First, Denormalize Later; Do Not Use Primary Keys with Real-World Meaning; XML Best Practices; XML Authoring; Use Entity References; Use Parameter Entities; Use Elements Sparingly, Attributes Excessively; SAX; Use the InputSource Class Correctly; Understand How SAX Handles Entity Resolution; Consider Using Partial Validation; DOM; Bootstrap DOM Correctly; DOM Levels 1 and 2; DOM Level 3