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
What is the role of hub in networks? The network traffic controller - elements of convential computer networks. Hub is used to link the different computers within the network i

JAVA, JSF(primefaces), SPRING Application Support Project Description: We require some one to be part of our team's new development , it's small application but in future, ch

Implement relationship using a java program. Assume each course has a course title, code, subject and number of credits while each student has a name, registration number, list of

Luminous Jewels - The Polishing Game Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various lum

What is use of join in Java Threading

Project Description: We are looking to prepare an app which allows the user (a student or an expat in a new country) to select from a list of furniture items to prepare a packag

Question: A new software engineer has joined Axistex Ltd. The systems analyst informs him that the organisation works with different operating system. The HR department works w

Why do we call JavaScript an Object-based Language? In java language an JavaScript shares several similarities with object-oriented languages, and thus is known as an object-ba

For this Assignment, submit the following program: Create an application for an animal-fur trimming service. The business is open 15 weeks of the year, from April through July. The

Explain the Execute phase of Java Program Development Finally in phase computer, under the control of its CPU, interprets program one bytecode at a time. Hence performing