WebSphere Application Server Best Practices
来源:互联网 发布:2016淘宝客 编辑:程序博客网 时间:2024/05/17 08:23
1 WebSphere Application Server Best Practices – Overview
这个文档描述了在开发基于servlets、JSP、JDBC、EJB等技术的WEB Application的过程中的最佳实践。下表列出了这些最佳时间,并以从1到5的等级来标识这些实践对性能的影响程度和发生的频率等。
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 appropriate | 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 |
对于每个实践,本文档提供了以下的内容:
1、描述和简要的背景介绍。
2、一段需要避免的代码片断。
3、一段最佳时间的实例代码片断。
4、通过列举最佳实践的益处来对其性能作比较。
对于开发者而言,要想开发出高性能的WEB Application的话除了上面列出的最佳实践之外还要掌握良好的Java语言构建技巧,在Bibliography – Additional References 部分可以到找到相应的参考。
- WebSphere Application Server Best Practices
- SQL Server administration best practices
- Web Server Security Best Practices
- Five best practices for Oracle Application Developers
- Best Practices: Use of Web Application Firewalls
- WebSphere Application Server
- IBM WebSphere Application Server
- SQL Server DBA Best Practices(1)
- SQL Server DBA Best Practices(2)
- SQL Server XML性能优化(Best Practices)
- Top 20 OpenSSH Server Best Security Practices
- WebSphere Application Server V6 备忘录
- 5.0.2 WebSphere Application Server
- 怎样卸载 WebSphere Application server
- IBM WebSphere Application Server (WAS)
- 下载、安装WebSphere Application Server
- WebSphere Application Server下载地址
- Best Practices -
- 微软二十五年简史(1975 - 2000)
- 升级到 Visual Studio .NET 2003 的 5 个理由
- 前所未有的锋利 - Robert X. Cringely
- Grady Booch - '.NET将改变你的生活!'
- equals与"=="操作符的比较
- WebSphere Application Server Best Practices
- Best Practice 1 Do not store large object graphs in HttpSession
- Best Practice 2 Release HttpSessions when finished
- Best Practice 3 Do not create HttpSessions in JSPs by default
- Best Practice 4 Minimize synchronization in Servlets
- Best Practice 5 Do not use SingleThreadModel
- Best Practice 6 Use JDBC connection pooling
- 游戏制作之我见:)
- 用Java实现的eChat聊天服务器