 | Level: Introductory Brett McLaughlin (brett@oreilly.com), Author and Editor, O'Reilly & Associates
30 Jan 2003 Welcome to EJB best practices. In this series, you'll learn how best to design and optimize your Enterprise JavaBeans components, how to reduce RMI traffic and JNDI access, and generally get the most out of your enterprise applications. In each tip, Brett McLaughlin, a leading authority on enterprise Java programming, will present a best practice or design pattern. Many tips will build upon what has come before. It's recommended that you work through the tips sequentially, as they will help you build up strategies and design methodologies that will help you in your own enterprise application programming.
Build a better exception-handling framework
January 2003
Level: Intermediate
Enterprise applications are often built with little attention given to exception handling, which can result in over-reliance on low-level exceptions such as java.rmi.RemoteException and javax.naming.NamingException. In this installment of EJB Best Practices, Brett McLaughlin explains why a little attention goes a long way when it comes to exception handling, and shows you two simple techniques that will set you on the path to building more robust and useful exception handling frameworks.
Validation helper classes
January 2003
Level: Intermediate
Well-designed validation procedures can increase data integrity, ensure your applications run smoothly, and make future changes in data easier to handle. In this edition of EJB best practices, Brett McLaughlin expands upon the validation techniques discussed in the last tip, and improves upon the initial concepts.
The fine points of data validation
December 2002
Level: Intermediate
Although data validation is a necessary component of all enterprise applications, data validation processes are generally poorly understood and badly executed. In this installment of EJB best practices, Brett McLaughlin explains some of the concepts behind data validation on EJB technology-based systems, and shows you how to avoid unexpected or incomprehensible error messages.
The limits of delegation
December 2002
Level: Intermediate
While the business delegate pattern is a popular solution to EJB abstraction, it has some serious limitations. In this installment of EJB best practices, Brett McLaughlin outlines those limitations, and shows you how to avoid them.
The dynamic delegate
November 2002
Level: Intermediate
While the business delegate class does bring exciting new flexibility to your enterprise Java designs, it can be tedious to code up a business delegate for every session bean in your application. In this installment of the EJB best practices series, Brett McLaughlin shows you how to create an even more generic version of the business delegate class: the dynamic delegate.
The Business Delegate pattern
October 2002
Level: Intermediate
One of the most complex issues in application planning is the necessary separation between business and implementation tiers. To accomplish this separation, Brett McLaughlin builds on the Business Interface pattern with a class to handle the abstraction of Web tier from business logic. The Business Delegate pattern can help you avoid the coupling that can make your applications hard to maintain and upgrade.
Entity bean protection
October 2002
Level: Intermediate
How do you enable users to access your application data without directly exposing your entity beans to the Web tier, which could open your application to security threats? Brett McLaughlin offers a solution that is safe for your entity beans and efficient for your overall application.
Industrial-strength JNDI optimization
September 2002
Level: Intermediate
Brett McLaughlin continues his EJB best practices with an examination of JNDI lookups, which are an essential and frequent part of almost all EJB interactions. Unfortunately, JNDI operations almost always exact a performance toll. In this tip, Brett shows you how a home-interface factory can reduce the overhead of JNDI lookups in your EJB applications.
Speed up your RMI transactions with value objects
September 2002
Level: Intermediate
Combined with RMI, EJB components let you access data from relational databases without ever having to delve into JDBC. But that abstraction comes at a price: RMI is slow, often to the extreme. In this tip, you'll see how value objects (also known as object maps) can help you maintain all the advantages of EJB technology without paying a stiff penalty for using RMI.
Improve your remote object design
August 2002
Level: Intermediate
Brett shows how the Business Interface pattern can improve your remote object design.
About the author  | 
|  |
Brett McLaughlin is one of the leading authorities today on enterprise programming. He has designed, architected, and implemented enterprise solutions at Nextel Communications and Allegiance Telecom, Inc., and helped develop the Lutris Enhydra open source J2EE application server. He has written books on XML, Java, data binding, and enterprise applications, and is the author of over 50 articles on enterprise programming. Additionally, Brett is a committing member of every open source J2EE application server available today: JBoss, Enhydra, and OpenEJB. He is also the co-founder of the JDOM API for Java and XML, the Apache Turbine project, and is involved in numerous other open source projects. He currently writes and edits for O'Reilly & Associates, the world's leading technical publisher. Contact Brett at brett@oreilly.com.
|
Rate this page
|  |