Volume 35, Issue 3 pp. 301-311
Research Article

Sharing of precompiled database statements in J2EE applications

Roberto Latorre

Corresponding Author

Roberto Latorre

Instituto de Ingeniería del Conocimiento (IIC), Universidad Autónoma de Madrid, 28049 Madrid, Spain

Dpto. de Ingeniería Informática, Escuela Politécnica Superior, Universidad Autónoma de Madrid, Ctra. Colmenar Viejo Km. 15, 28049 Madrid, Spain

Instituto de Ingeniería del Conocimiento (IIC), Universidad Autónoma de Madrid, Ctra. Colmenar Viejo Km. 15, Escuela Politécnica Superior Edificio B planta 5a, 28049 Madrid, SpainSearch for more papers by this author
Francisco López

Francisco López

Instituto de Ingeniería del Conocimiento (IIC), Universidad Autónoma de Madrid, 28049 Madrid, Spain

Search for more papers by this author
Antonio E. Martínez

Antonio E. Martínez

Instituto de Ingeniería del Conocimiento (IIC), Universidad Autónoma de Madrid, 28049 Madrid, Spain

Dpto. de Ingeniería Informática, Escuela Politécnica Superior, Universidad Autónoma de Madrid, Ctra. Colmenar Viejo Km. 15, 28049 Madrid, Spain

Search for more papers by this author
First published: 03 December 2004
Citations: 1

Abstract

This paper presents a mechanism to optimize the access to a database for Java 2 Platform Enterprise Edition (J2EE) applications. This mechanism was used in the migration of a PHP application to the J2EE platform to solve the limitations found in the standard database access. The proposed mechanism is optimal for applications with complex database queries and/or a high number of them per time unit. It presents an alternative to the traditional access, which can produce a database overhead in applications with these characteristics. The proposed database access mechanism is based on the idea of sharing precompiled statements and connections between different users. When a part of the application wants to execute an SQL statement, either a new object is created representing it, or an existing one, created previously, is reused. Copyright © 2004 John Wiley & Sons, Ltd.

The full text of this article hosted at iucr.org is unavailable due to technical difficulties.