- Overview of EJB
- Common tuning practices in EJBs
- Choosing between EJB and non-EJB
- Choosing between Local EJB and Remote EJB
- Optimize with Pass-by-Reference mechanism
- Wrap entity beans with session bean
- Reduce method calls with coarse granularity
- Control Serialization in Remote EJBs
- Cache EJBHome object references
- Control transaction
- Set optimal transaction age
- Use clustering for scalability
- Tune thread count
- Choosing between HttpSession and Stateful session beans
- Choose an EJB Server
- Tuning Stateless session beans
- Stateless session bean life cycle
- Tune Stateless session beans instance pool size
- Use setSessionContext() or ejbCreate() method as cache
- Release resources in ejbRemove() method
- Tuning Stateful session beans
- Stateful session bean life cycle
- Tune Stateful session beans instance cache size
- Set Optimal bean age for Stateful session beans
- Control serialization in Stateful session beans
- Remove Stateful session beans explicitly
- Tuning Entity Beans
- Entity bean life cycle
- Tune Entity beans instance pool size
- Tune Entity beans instance cache size
- Use setEntityContext() method as cache
- Release resources in unSetEntityContext() method
- Use lazy loading
- Choose optimal transaction isolation level
- Use proper locking strategy
- Make read-only Entity beans
- Use dirty flag to avoid unchanged buffer data updation
- Commit data after transaction
- Do bulk updates
- Use CMP instead of BMP
- Use ejbHome() methods for global operations
- Use connection pool
- Use JDBC tuning techniques
- Use direct JDBC when dealing with huge data
- Use business logic in Entity beans
- Tuning Message Driven Beans
- Message Driven Bean life cycle
- Tune Message Driven Beans instance pool size
- Use setMessageDrivenContext() or ejbCreate() method as cache
- Release resources in ejbRemove() method
- Use JMS tuning techniques
- Key Points
Monday, April 18, 2005
Best practices to improve performance in EJB
Subscribe to:
Post Comments (Atom)
Popular Posts
- ActiveMQ - Home
- Linux Forum: Apache, Webmin and Mandrake - Linux Operating System Help
- XML.com: Implementing REST Web Services: Best Practices and Guidelines
- Quick HOWTO: Dynamic DNS
- Setting up java tomcat on linux V - Configure APACHE non-ssl
- Simplify XML file processing with the Jakarta Commons Digester
- ONJava.com: Extending Struts
- PostgreSQL 7.3 Documentation
- Understanding Portals and Portlets: Part Two (SYS-CON)(Printview)
- PostgreSQL on Mandrake 9.1 with Java
No comments:
Post a Comment