(1) In a non-Web environment, an application server performs the business logic (the data processing), although some business logic may be handled by the user's machine. See file server.
(2) In a private or public Web environment (intranet or Internet), an application server hosts a variety of language systems used to query databases. These scripts and services, such as Active Server Pages (ASPs), Java server pages (JSPs) and Java servlets, typically access a database to retrieve up-to-date data presented to users via their browsers or client applications. The application server may reside in the same computer as the Web server (HTTP server) or be in a separate computer. In large sites, multiple application servers and multiple Web servers (HTTP servers) are used. Examples of Web application servers include BEA Weblogic Server and IBM's WebSphere Application Server. See Web server.