WebSphere Application Server Best Practices

zhaozj2021-02-17  63

1 WebSphere Application Server Best Practices - Overview

This document describes best practices in the process of developing Web Application based on servlets, JSP, JDBC, EJB. The following table lists these best times and identifies the degree of influence of these practices to performance and the frequency of the performance, and the frequency of the performance of these practices.

Category Best Practice Number and Description Importance Servlets 1. Do not store large object graphs in HttpSession 2 Servlets 2. Release HttpSessions when finished 3 JSP Files 3. Do not create HttpSessions in JSPs by default 4 Servlets 4. Minimize synchronization in Servlets 2 Servlets 5 . Do not use SingleThreadModel 5 All web and enterprise application components 6. use JDBC connection pooling 3 All web and enterprise application components 7. Reuse datasources for JDBC connections 1 All web and enterprise application components 8. Release JDBC resources when done 3 Servlets 9. Use the httpservlet init method to perform expensive

Operations That Need Only BE DONE ONCE 4 All Web and Enterprise Application Components 10. Minimize Use of System.out.println

2 All Web and Enterprise Application Components 11. Avoid String ConcateNation " ="

1 Enterprise Beans 12. Access Entity Beans from Session Beans

3 Enterprise Beans 13. Reuse EJB HOMES 1 Enterprise Beans 14. USE "Read-Only" Methods Where Appropriate

3 Enterprise Beans 15. Reduce The Transaction Isolation Level Where APPRIATE

5 Enterprise Beans 16. EJBS And Servlets - Same JVM - "No Local Copies"

2 Enterprise Beans 17. Remove Stateful Session Beans When Finished

2 servlets 18. don't use beans.instantiate () to create new bean

INSTANCES 3

For each practice, this document provides the following content:

1, description and brief background.

2, a piece of code that needs to be avoided.

3, an instance code piece of the best time.

4. Compare the performance of the best practices.

For developers, in addition to developing high-performance Web Applications, in addition to the best practices listed above, you must have a good Java language build tip, in the Bibliography - Additional References section, you can find the appropriate reference.

转载请注明原文地址:https://www.9cbs.com/read-29703.html

New Post(0)