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
Platform independence is the key feature of Java during runtime. Syntax of java is same to the popular object oriented languages such as C and C++. Java program can eliminate most

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

What are the role of Keywords in java? Keywords are identifiers such as public, static and class in which have a special meaning inside Java source code and outside of comments

Ask questionWrite a program BruteForceSearch that uses the brute-force approach given above and compare its running time on your computer with that of Binary Search for largeW.txt

Medical Services Referral System:       Role : Websphere Administrator       Involved in Exposure to load balancing tools (BigIP, WAS plug-ins) and Siteminder.

#questiongfjnkdfn..

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

Advice is the execution of an aspect. It is something like telling your application of a new behavior. Generally, and advice is inserted into an application at joinpoints

What is a Relational Database? Give the names of any three RDBMS software? Database consist of two or more then two tables are called Relational database. Oracle dabatbase S

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing tha