Updated web.xml with Spring goodies
[java-idp.git] / WEB-INF / web.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <web-app xmlns="http://java.sun.com/xml/ns/j2ee" 
4          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" 
6          version="2.4">
7     
8     <!--
9       Spring 2.0 application context files.  Files are loaded in the order they appear with subsequent files 
10       overwritting same named beans in previous files.
11     -->
12     <context-param>
13       <param-name>contextConfigLocation</param-name>
14       <param-value>/WEB-INF/idpContext.xml, /WEB-INF/resolverContext.xml, /WEB-INF/profile.xml</param-value>
15     </context-param>
16     
17     <!-- 
18       Spring 2.0 listener used to load up the configuration
19     -->
20     <listener>
21       <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
22     </listener>
23     
24     <!-- 
25       Session time inactivity timeout, in minutes.
26       
27       A timeout of 0 or less means the session never timesout.  Such a setting is strongly discouraged and will 
28       almost certainly lead to memory exhaustion under moderate to heavy loads or in servers with prolonged uptime.
29      -->
30     <session-config>
31         <session-timeout>30</session-timeout>
32     </session-config>
33
34     <!--
35       Profile Request Dispatcher
36     -->
37     <servlet>
38         <servlet-name>ProfileRequestDispatcher</servlet-name>
39         <servlet-class>edu.internet2.middleware.shibboleth.idp.profile.ProfileRequestDispatcher</servlet-class>
40     </servlet>
41         
42     <servlet-mapping>
43         <servlet-name>ProfileRequestDispatcher</servlet-name>
44         <url-pattern>/IdP</url-pattern>
45     </servlet-mapping>
46     
47     <!--
48       Authentication Manager
49     -->
50     <servlet>
51         <servlet-name>AuthenticationManager</servlet-name>
52         <servlet-class>edu.internet2.middleware.shibboleth.idp.authn.AuthenticationManager</servlet-class>
53     </servlet>
54     
55     <servlet-mapping>
56         <servlet-name>AuthenticationManager</servlet-name>
57         <url-pattern>/IdP/Authn</url-pattern>
58     </servlet-mapping>
59     
60 </web-app>