Define the j2ee best practices to improve performance? , JAVA Programming

Manage valuable resources recycle and wisely them where possible, serialization cost and minimize network overheads, and optimize all your database functions.

1. Recycle and manage your valuable sources by either pooling or caching. You should make a limited number of sources and share them from a common pool. Caching is simply another kind of pooling where instead of pooling a connection or object instance; you are pooling remote data, and providing it in memory.

2. Use effective design patterns to minimize network load, use  of  fast-lane  reader  pattern  for  database  reacts . The  service  locator  design  pattern,  which  replace  expensive  JNDI  access  with  the  help  of  caching principles.

3. Minimize serialization prices by marking references, which do not need serialization by declaring them 'transient'. Use pass-by-reference where possible as opposed to pass by number.

4. Set appropriate timeouts: for the HttpSession objects, after which the session ends, define idle timeout for stateful session beans etc.

5. Enhance the performance of database operations with the following tips:

  • Database connections should be opened when not needed anymore, otherwise there will be potential source leakage problems.
  • Apply least restrictive but valid operation isolation level.
  • Use JDBC created statements for overall database efficiency and for batching repetitive updates and inserts.
  • Where appropriate eager overhead your data to avoid frequently accessing the database every time on the network.

 

Posted Date: 7/27/2012 5:55:36 AM | Location : United States







Related Discussions:- Define the j2ee best practices to improve performance? , Assignment Help, Ask Question on Define the j2ee best practices to improve performance? , Get Answer, Expert's Help, Define the j2ee best practices to improve performance? Discussions

Write discussion on Define the j2ee best practices to improve performance?
Your posts are moderated
Related Questions
String concatenation and comparison public class StringTest { public static void main(String[] args) { int i = 4; int j = 5; System.out.println ("Hello" + i); // wi

You are part of a team creating a system to keep track of computer science books that a publisher is producing. Create a UML class diagram for a "computer science book". You must h

Prepare Android Antivirus with locate device capability Project Description: We need a developer that can develop an Android Antivirus similar to lookout Developer need to prov

Web-based Application: CIA - OMP Type                                         Web-based Application Role                                          Weblogic Administrato

It could be something simple for a good js coder. But there may be a custom design and I can give more feedback for the person who is interested in working with me. Check Invisi

A easy expression language used by a JavaServer Faces UI component tag attributes to bind the associated component to a bean property or to bind the associated component's value to

What is the use of UnicastRemoteObject in RMI? Ans) The UnicastRemoteObject class gives support for point-to-point active object references using TCP streams. Objects that need

Project Description: We need to develop software that has a database of players with the ability to delete and add players at will, once captured there can be a draw to set them

Project Description: Modules of software: 1 - Serial RS232 comm port comunication 2 - NanoHTTPD serving some processed pages 3 - System tray application to indicate sta

Super() Constructer: It is used to call constructor of parent class. Should be the first statement in the body of constructor. Using this we can access private variables