apache-ignite
62 строки · 2.3 Кб
1<!--
2~ Licensed to the Apache Software Foundation (ASF) under one or more
3~ contributor license agreements. See the NOTICE file distributed with
4~ this work for additional information regarding copyright ownership.
5~ The ASF licenses this file to You under the Apache License, Version 2.0
6~ (the "License"); you may not use this file except in compliance with
7~ the License. You may obtain a copy of the License at
8~
9~ http://www.apache.org/licenses/LICENSE-2.0
10~
11~ Unless required by applicable law or agreed to in writing, software
12~ distributed under the License is distributed on an "AS IS" BASIS,
13~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14~ See the License for the specific language governing permissions and
15~ limitations under the License.
16-->
17
18<!DOCTYPE web-app PUBLIC19"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"20"http://java.sun.com/dtd/web-app_2_3.dtd" >21
22<web-app>23<display-name>Archetype Created Web Application</display-name>24
25<listener>26<listener-class>org.apache.ignite.startup.servlet.ServletContextListenerStartup</listener-class>27</listener>28
29<filter>30<filter-name>IgniteWebSessionsFilter</filter-name>31<filter-class>org.apache.ignite.cache.websession.WebSessionFilter</filter-class>32</filter>33
34<!-- You can also specify a custom URL pattern. -->35<filter-mapping>36<filter-name>IgniteWebSessionsFilter</filter-name>37<url-pattern>/*</url-pattern>38</filter-mapping>39
40<!-- Specify Ignite configuration (relative to META-INF folder or Ignite_HOME). -->41<context-param>42<param-name>IgniteConfigurationFilePath</param-name>43<param-value>config/default-config.xml </param-value>44</context-param>45
46<!-- Specify the name of Ignite cache for web sessions. -->47<context-param>48<param-name>IgniteWebSessionsCacheName</param-name>49<param-value>atomic</param-value>50</context-param>51
52<servlet>53<servlet-name>TestJtaTxServlet</servlet-name>54<servlet-class>org.apache.ignite.webtest.TestJtaTxServlet</servlet-class>55</servlet>56
57<servlet-mapping>58<servlet-name>TestJtaTxServlet</servlet-name>59<url-pattern>jta-test</url-pattern>60</servlet-mapping>61
62</web-app>63