1 |
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> |
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> |
3 |
<display-name>TrainInfoService</display-name> |
<display-name>TrainInfoService</display-name> |
4 |
<welcome-file-list> |
<welcome-file-list> |
5 |
<welcome-file>index.html</welcome-file> |
<welcome-file>index.html</welcome-file> |
6 |
<welcome-file>index.htm</welcome-file> |
<welcome-file>index.htm</welcome-file> |
7 |
<welcome-file>index.jsp</welcome-file> |
<welcome-file>index.jsp</welcome-file> |
8 |
<welcome-file>default.html</welcome-file> |
<welcome-file>default.html</welcome-file> |
9 |
<welcome-file>default.htm</welcome-file> |
<welcome-file>default.htm</welcome-file> |
10 |
<welcome-file>default.jsp</welcome-file> |
<welcome-file>default.jsp</welcome-file> |
11 |
</welcome-file-list> |
</welcome-file-list> |
12 |
<resource-ref> |
<context-param> |
13 |
<description> |
<description>Bool: Describes whether to use normal bane.dk site or use the failover (bane.dk/lite)</description> |
14 |
Resource reference to a factory for java.sql.Connection |
<param-name>usetempsite</param-name> |
15 |
instances that may be used for talking to the database |
<param-value>false</param-value> |
16 |
that is configured in server.xml. |
</context-param> |
17 |
</description> |
<context-param> |
18 |
<res-ref-name>jdbc/android</res-ref-name> |
<description>Int: The error threshold for banedk circuitbreaker</description> |
19 |
<res-type>javax.sql.DataSource</res-type> |
<param-name>banedk_threshold</param-name> |
20 |
<res-auth>Container</res-auth> |
<param-value>5</param-value> |
21 |
</resource-ref> |
</context-param> |
22 |
<servlet> |
<context-param> |
23 |
<description></description> |
<description>Int: the timeout for an open banedk circuitbreaker (milliseconds) </description> |
24 |
<display-name>LocateStations</display-name> |
<param-name>banedk_timeout</param-name> |
25 |
<servlet-name>LocateStations</servlet-name> |
<param-value>60000</param-value> |
26 |
<servlet-class>dk.thoerup.traininfoservice.LocateStations</servlet-class> |
</context-param> |
27 |
</servlet> |
<context-param> |
28 |
<servlet-mapping> |
<description>Int: how long should banedk results be cached (milliseconds) </description> |
29 |
<servlet-name>LocateStations</servlet-name> |
<param-name>cache_timeout</param-name> |
30 |
<url-pattern>/LocateStations</url-pattern> |
<param-value>120000</param-value> |
31 |
</servlet-mapping> |
</context-param> |
32 |
<servlet> |
<resource-ref> |
33 |
<description></description> |
<description> |
34 |
<display-name>DumpResultSet</display-name> |
Resource reference to a factory for java.sql.Connection |
35 |
<servlet-name>DumpResultSet</servlet-name> |
instances that may be used for talking to the database |
36 |
<servlet-class>dk.thoerup.traininfoservice.DumpResultSet</servlet-class> |
that is configured in server.xml. |
37 |
</servlet> |
</description> |
38 |
<servlet-mapping> |
<res-ref-name>jdbc/android</res-ref-name> |
39 |
<servlet-name>DumpResultSet</servlet-name> |
<res-type>javax.sql.DataSource</res-type> |
40 |
<url-pattern>/DumpResultSet</url-pattern> |
<res-auth>Container</res-auth> |
41 |
</servlet-mapping> |
</resource-ref> |
42 |
<servlet> |
<servlet> |
43 |
<description></description> |
<description></description> |
44 |
<display-name>LoadStations</display-name> |
<display-name>LocateStations</display-name> |
45 |
<servlet-name>LoadStations</servlet-name> |
<servlet-name>LocateStations</servlet-name> |
46 |
<servlet-class>dk.thoerup.traininfoservice.LoadStations</servlet-class> |
<servlet-class>dk.thoerup.traininfoservice.LocateStations</servlet-class> |
47 |
</servlet> |
</servlet> |
48 |
<servlet-mapping> |
<servlet-mapping> |
49 |
<servlet-name>LoadStations</servlet-name> |
<servlet-name>LocateStations</servlet-name> |
50 |
<url-pattern>/LoadStations</url-pattern> |
<url-pattern>/LocateStations</url-pattern> |
51 |
</servlet-mapping> |
</servlet-mapping> |
52 |
<servlet> |
<servlet> |
53 |
<description></description> |
<description></description> |
54 |
<display-name>DepartureServlet</display-name> |
<display-name>DumpResultSet</display-name> |
55 |
<servlet-name>DepartureServlet</servlet-name> |
<servlet-name>DumpResultSet</servlet-name> |
56 |
<servlet-class>dk.thoerup.traininfoservice.banedk.DepartureServlet</servlet-class> |
<servlet-class>dk.thoerup.traininfoservice.DumpResultSet</servlet-class> |
57 |
</servlet> |
</servlet> |
58 |
<servlet-mapping> |
<servlet-mapping> |
59 |
<servlet-name>DepartureServlet</servlet-name> |
<servlet-name>DumpResultSet</servlet-name> |
60 |
<url-pattern>/DepartureServlet</url-pattern> |
<url-pattern>/DumpResultSet</url-pattern> |
61 |
</servlet-mapping> |
</servlet-mapping> |
62 |
<servlet> |
<servlet> |
63 |
<description></description> |
<description></description> |
64 |
<display-name>TimetableServlet</display-name> |
<display-name>LoadStations</display-name> |
65 |
<servlet-name>TimetableServlet</servlet-name> |
<servlet-name>LoadStations</servlet-name> |
66 |
<servlet-class>dk.thoerup.traininfoservice.banedk.TimetableServlet</servlet-class> |
<servlet-class>dk.thoerup.traininfoservice.LoadStations</servlet-class> |
67 |
</servlet> |
</servlet> |
68 |
<servlet-mapping> |
<servlet-mapping> |
69 |
<servlet-name>TimetableServlet</servlet-name> |
<servlet-name>LoadStations</servlet-name> |
70 |
<url-pattern>/TimetableServlet</url-pattern> |
<url-pattern>/LoadStations</url-pattern> |
71 |
</servlet-mapping> |
</servlet-mapping> |
72 |
|
<servlet> |
73 |
<servlet> |
<description></description> |
74 |
<description></description> |
<display-name>DepartureServlet</display-name> |
75 |
<display-name>CircuitBreakerServlet</display-name> |
<servlet-name>DepartureServlet</servlet-name> |
76 |
<servlet-name>CircuitBreakerServlet</servlet-name> |
<servlet-class>dk.thoerup.traininfoservice.banedk.DepartureServlet</servlet-class> |
77 |
<servlet-class>dk.thoerup.traininfoservice.CircuitBreakerServlet</servlet-class> |
</servlet> |
78 |
<init-param> |
<servlet-mapping> |
79 |
<param-name>readonly</param-name> |
<servlet-name>DepartureServlet</servlet-name> |
80 |
<param-value>0</param-value> |
<url-pattern>/DepartureServlet</url-pattern> |
81 |
</init-param> |
</servlet-mapping> |
82 |
</servlet> |
<servlet> |
83 |
|
<description></description> |
84 |
<servlet-mapping> |
<display-name>TimetableServlet</display-name> |
85 |
<servlet-name>CircuitBreakerServlet</servlet-name> |
<servlet-name>TimetableServlet</servlet-name> |
86 |
<url-pattern>/CircuitBreakerServlet</url-pattern> |
<servlet-class>dk.thoerup.traininfoservice.banedk.TimetableServlet</servlet-class> |
87 |
</servlet-mapping> |
</servlet> |
88 |
|
<servlet-mapping> |
89 |
<listener> |
<servlet-name>TimetableServlet</servlet-name> |
90 |
<listener-class>dk.thoerup.traininfoservice.CircuitBreakerListener</listener-class> |
<url-pattern>/TimetableServlet</url-pattern> |
91 |
</listener> |
</servlet-mapping> |
92 |
|
<servlet> |
93 |
|
<description></description> |
94 |
|
<display-name>CircuitBreakerServlet</display-name> |
95 |
|
<servlet-name>CircuitBreakerServlet</servlet-name> |
96 |
|
<servlet-class>dk.thoerup.traininfoservice.CircuitBreakerServlet</servlet-class> |
97 |
|
<init-param> |
98 |
|
<param-name>readonly</param-name> |
99 |
|
<param-value>0</param-value> |
100 |
|
</init-param> |
101 |
|
</servlet> |
102 |
|
<servlet-mapping> |
103 |
|
<servlet-name>CircuitBreakerServlet</servlet-name> |
104 |
|
<url-pattern>/CircuitBreakerServlet</url-pattern> |
105 |
|
</servlet-mapping> |
106 |
|
<listener> |
107 |
|
<listener-class>dk.thoerup.traininfoservice.CircuitBreakerListener</listener-class> |
108 |
|
</listener> |
109 |
|
<servlet> |
110 |
|
<description></description> |
111 |
|
<display-name>TestServlet</display-name> |
112 |
|
<servlet-name>TestServlet</servlet-name> |
113 |
|
<servlet-class>dk.thoerup.traininfoservice.TestServlet</servlet-class> |
114 |
|
</servlet> |
115 |
|
<servlet-mapping> |
116 |
|
<servlet-name>TestServlet</servlet-name> |
117 |
|
<url-pattern>/TestServlet</url-pattern> |
118 |
|
</servlet-mapping> |
119 |
|
<servlet> |
120 |
|
<description></description> |
121 |
|
<display-name>RequestPlotter</display-name> |
122 |
|
<servlet-name>RequestPlotter</servlet-name> |
123 |
|
<servlet-class>dk.thoerup.traininfoservice.RequestPlotter</servlet-class> |
124 |
|
</servlet> |
125 |
|
<servlet-mapping> |
126 |
|
<servlet-name>RequestPlotter</servlet-name> |
127 |
|
<url-pattern>/RequestPlotter</url-pattern> |
128 |
|
</servlet-mapping> |
129 |
</web-app> |
</web-app> |