Skip to main content
Version: Next


To install an AWE-based application just deploy it on an application server, like Apache Tomcat, Wildfly (old JBoss) or IBM WebSphere


There are several settings which can be defined onto the application server to optimize the access time between client browser and server and between server and databases:

Server compression

Server compression reduces the size of packages sent to client browser by compressing them in GZIP, which can be uncompressed by all modern browsers.

To activate this setting (in Tomcat) use the following attributes on server.xml file:

<Connector port="[connectorPort]" protocol="HTTP/1.1"
redirectPort="[redirectPort]" compression="on"
noCompressionUserAgents="gozilla, traviata"


A datasource is a server-managed connection pool which speeds up the database access. Connection in Apache Tomcat has two steps:

server.xml: Define the database connection

<Resource name="[resourceName]" auth="Container"
type="javax.sql.DataSource" driverClassName=""
username="[databaseUsername]" password="[databasePassword]" maxActive="20" maxIdle="-1"
maxWait="-1" removeAbandoned="true" logAbandoned="true" validationQuery="select 1 from ope"/>

context.xml: Define the server endpoint to allow access to the datasource

<ResourceLink global="[resourceName]" name="[datasourceName]" type="javax.sql.DataSource"/>

Note: These optimization settings are only for Apache Tomcat. Wildfly and WebSphere have their own settings to enable server compression and datasoures

Application server hardening

Apache Tomcat

We recommend to follow these steps to improve application server security.

<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
  • Enable clickjacking protection (only for Tomcat version 8 or greater). : web.xml: Uncomment the following code

And add the following code just after the uncommented section:

  • If HTTPS is enabled, add a rule to redirect HTTP requests to HTTPS. On web.xml file add the following code at the end of web-app tag (add it inside web-app tag):
<web-resource-name>Secure SSL</web-resource-name>