A system or method enables a two tier computer application to operate in a three
tier computer environment without specific programming for the three tier environment.
Such a system or method receives a database call at a computer system and maps
the database call to a general programming language call of a computer application.
The general programming language call is executed to invoke functions of the computer
application that correspond to functions of the database call. The general programming
language call may be an Enterprise Java Bean (EJB) call. An application server
receives the database call and maps the database call to the general programming
language call. In response to executing the general programming language call,
the application server generates a second database call to the database that may
either correspond directly or indirectly to the database call received at the application
server. The database calls may both be SQL calls. The general computer programming
language may have EJB components that are analyzed to determine the correspondence
between the database elements and the elements of the components that access the
database elements. Methods of the EJB components may be identified for use in determining
the correspondence. The methods may be identified by searching for a method of
the form command prefixXXX, where the prefix is a "get" or "set" method.