Permalink
Browse files

set session timeout to 10mins

  • Loading branch information...
1 parent d347859 commit f6d24ac460a6e3464fb10f7e29cc807bf8ae3921 @jingweno committed Aug 22, 2010
Showing with 56 additions and 74 deletions.
  1. +56 −74 org.codefaces.build/templates/war/WEB-INF/web.xml
@@ -2,84 +2,66 @@
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app id="WebApp">
- <servlet id="bridge">
- <servlet-name>equinoxbridgeservlet</servlet-name>
- <display-name>Equinox Bridge Servlet</display-name>
- <description>Equinox Bridge Servlet</description>
- <servlet-class>
- org.eclipse.equinox.servletbridge.BridgeServlet
+ <servlet id="bridge">
+ <servlet-name>equinoxbridgeservlet</servlet-name>
+ <display-name>Equinox Bridge Servlet</display-name>
+ <description>Equinox Bridge Servlet</description>
+ <servlet-class>
+ org.eclipse.equinox.servletbridge.BridgeServlet
</servlet-class>
-
- <!-- the OSGi console is useful for trouble shooting but will fill up your
- appserver log quickly, so deactivate on production use -->
- <!--
- <init-param>
- <param-name>commandline</param-name>
- <param-value>-console</param-value>
- </init-param>
- -->
-
- <!-- Enable multi-language support for the extension registry -->
- <init-param>
- <param-name>
- commandline
- </param-name>
- <param-value>
- -registryMultiLanguage
- </param-value>
- </init-param>
-
- <!-- Framework Controls could be useful for testing purpose, but
- we disable it in RAP environment per default -->
- <init-param>
- <param-name>
- enableFrameworkControls
+
+ <!-- the OSGi console is useful for trouble shooting but will fill up your
+ appserver log quickly, so deactivate on production use -->
+ <!-- <init-param> <param-name>commandline</param-name> <param-value>-console</param-value>
+ </init-param> -->
+
+ <!-- Enable multi-language support for the extension registry -->
+ <init-param>
+ <param-name>
+ commandline
</param-name>
- <param-value>
- false
+ <param-value>
+ -registryMultiLanguage
</param-value>
- </init-param>
-
- <!--
- org.eclipse.equinox.servletbridge and the Servlet API are exported
- automatically to the underlying OSGi framework.
- The extendedFrameworkExports parameter allows the specification of
- additional java package exports. The format is a comma separated list
- of exports as specified by the "Export-Package" bundle manifest header.
- For example: com.mycompany.exports; version=1.0.0,
- com.mycompany.otherexports; version=1.0.0
-
- <init-param>
- <param-name>
- extendedFrameworkExports
+ </init-param>
+
+ <!-- Framework Controls could be useful for testing purpose, but we disable
+ it in RAP environment per default -->
+ <init-param>
+ <param-name>
+ enableFrameworkControls
</param-name>
- <param-value>
+ <param-value>
+ false
</param-value>
- </init-param>
- -->
-
- <!--
- You can specify your own framework launcher here.
- The default is: org.eclipse.equinox.servletbridge.FrameworkLauncher
- <init-param>
- <param-name>frameworkLauncherClass</param-name>
- <param-value>org.eclipse.equinox.servletbridge.FrameworkLauncher</param-value>
- </init-param>
- -->
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>equinoxbridgeservlet</servlet-name>
- <url-pattern>/*</url-pattern>
- </servlet-mapping>
-
- <!--
- This is required if your application bundles expose JSPs.
+ </init-param>
+
+ <!-- org.eclipse.equinox.servletbridge and the Servlet API are exported
+ automatically to the underlying OSGi framework. The extendedFrameworkExports
+ parameter allows the specification of additional java package exports. The
+ format is a comma separated list of exports as specified by the "Export-Package"
+ bundle manifest header. For example: com.mycompany.exports; version=1.0.0,
+ com.mycompany.otherexports; version=1.0.0 <init-param> <param-name> extendedFrameworkExports
+ </param-name> <param-value> </param-value> </init-param> -->
+
+ <!-- You can specify your own framework launcher here. The default is:
+ org.eclipse.equinox.servletbridge.FrameworkLauncher <init-param> <param-name>frameworkLauncherClass</param-name>
+ <param-value>org.eclipse.equinox.servletbridge.FrameworkLauncher</param-value>
+ </init-param> -->
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>equinoxbridgeservlet</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+ <!-- This is required if your application bundles expose JSPs. <servlet-mapping>
+ <servlet-name>equinoxbridgeservlet</servlet-name> <url-pattern>*.jsp</url-pattern>
+ </servlet-mapping> -->
- <servlet-mapping>
- <servlet-name>equinoxbridgeservlet</servlet-name>
- <url-pattern>*.jsp</url-pattern>
- </servlet-mapping>
- -->
+ <!-- Overriding session timeout to 10 mins -->
+ <session-config>
+ <session-timeout>10</session-timeout>
+ </session-config>
</web-app>

0 comments on commit f6d24ac

Please sign in to comment.