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
A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related files and classes and interacts with other components. The

Write a program to perform multiplication and division in java? Of course Java could also do multiplication and division. Because most keyboards don't have the times and divisi

Question: (a) Draw out a UML class diagram that captures the following information: An Employee is a kind of Person. An ATM is a kind of Machine. Both an Employee and an ATM

(CarbonFootprint Interface: Polymorphism) Using interfaces, as you learned in this chapter, you can specify similar behaviors for possibly disparate classes. Governments and compan

QUESTION 3: Overloaded methods Write the overloaded method named average () for each of the following problems: a) The first method receives THREE (3) integer values and returns

I want Selenium Based Test Automation for Java Based Web Application Project Description: I want some test cases to be automated to login to UI which is Java based web applic

Dynamic JAVA Class and type information is kept around at runtime. This allows runtime loading and inspection of code in a very flexible way.

Objectives 1.      To design and implement a simple class. 2.      To write a test program to create instances of your class and demonstrate its behaviour. 3.      To col

what is the use of marker interface?