Session Concurrency Filter
The session concurrency filter is a java servlet filter that serializes the requests from a WAR project to a server over one session. You can use the session concurrency filter to:
Reduce the load imparted on the server by highly concurrent web applications.
Resolve errors that might occur because of logic that is not thread safe.
Potentially improve performance in cases when serializing requests is faster than running the requests concurrently.
The session concurrency filter is intended for web applications that utilize HTML <FRAMESET> or <IFRAME> tags.
To use the servlet filter, you must update the web.xml file of your application with the following filter:
<filter>
<filter-name>maxThreadsPerSession</filter-name>
<display-name>
com.softwareag.applatform.pls.is.web.filter.SessionConcurrencyFilter
</display-name>
<description>Serializes requests for each Session</description>
<filter-class>
com.softwareag.applatform.pls.is.web.filter.SessionConcurrencyFilter
</filter-class>
<!-- optional element. The default is '1' -->
<init-param>
<param-name>maxPerSession</param-name>
<param-value>1</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>maxThreadsPerSession</filter-name>
<url-pattern>*/*</url-pattern>
</filter-mapping>