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 user interface control that outputs data to a client or permits a user to input data to a JavaServer Faces application.

Project Description: (1) I want a comprehensive list of Australian chiropractors. The data requires coming from various sources including Google but the following are obligatory

What is the Comparable interface? Comparable interface is used to sort arrays and collections of objects using collections.sort() and java.utils. Objects of the class implement

Staging areas that have messages those have been sent and are waiting to be read. Note that, contrary to what the name queue suggests, messages don't have to be delivered in the or

Using the above thread program, now create 20 threads in your program and run them. No need to wait for the keyboard in each thread, just print "Hello" and its thread id in each t

You are required to  design & implement  online  food delivery  system  using Java RMI technology.  This involves writing both the server and the client program(s). Client programs

Question : a) There are up to 14 different built-in groups that might be located by default in the Builtin container including "Account Operators", "Incoming Forest Trust Bui

Each time an object is started in Java it goes into the area of memory named as heap. The primitive variables like double and int are allocated in the stack, if they are local inst

write a program in java using array and scanner class to generate padovan series

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