Debian Codegraph @

activemq-web-demo/src/main/webapp/WEB-INF/web.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 -->
18 <web-app xmlns="http://java.sun.com/xml/ns/javaee"
19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
21 version="3.0">
22
23 <display-name>Apache ActiveMQ Web Demo</display-name>
24
25 <!-- context config -->
26 <context-param>
27 <description>Whether we should include an embedded broker or not</description>
28 <param-name>org.apache.activemq.embeddedBroker</param-name>
29 <param-value>true</param-value>
30 </context-param>
31
32 <!-- filters -->
33 <filter>
34 <filter-name>session</filter-name>
35 <filter-class>org.apache.activemq.web.SessionFilter</filter-class>
36 <async-supported>true</async-supported>
37 </filter>
38 <filter-mapping>
39 <filter-name>session</filter-name>
40 <url-pattern>/*</url-pattern>
41 </filter-mapping>
42
43 <!-- listener -->
44 <listener>
45 <listener-class>org.apache.activemq.web.SessionListener</listener-class>
46 </listener>
47
48 <!-- servlet mappings -->
49
50 <!-- the subscription REST servlet -->
51 <servlet>
52 <servlet-name>AjaxServlet</servlet-name>
53 <servlet-class>org.apache.activemq.web.AjaxServlet</servlet-class>
54 <load-on-startup>1</load-on-startup>
55 <async-supported>true</async-supported>
56 </servlet>
57
58 <servlet>
59 <servlet-name>MessageServlet</servlet-name>
60 <servlet-class>org.apache.activemq.web.MessageServlet</servlet-class>
61 <load-on-startup>1</load-on-startup>
62 <async-supported>true</async-supported>
63 <!--
64 Uncomment this parameter if you plan to use multiple consumers over REST
65 <init-param>
66 <param-name>destinationOptions</param-name>
67 <param-value>consumer.prefetchSize=1</param-value>
68 </init-param>
69 -->
70 <!--
71 Uncomment this parameter if you plan to change the default max size of a message over REST. By default, it is set
72 to 100,000. Set it to -1 to disable the limitation but be aware that your AMQ instance could run out of memory if
73 the message is too big. See https://issues.apache.org/jira/browse/AMQ-8029 for more details.
74 <init-param>
75 <param-name>maxMessageSize</param-name>
76 <param-value>-1</param-value>
77 </init-param>
78 -->
79 </servlet>
80
81 <!-- the queue browse servlet -->
82 <servlet>
83 <servlet-name>QueueBrowseServlet</servlet-name>
84 <servlet-class>org.apache.activemq.web.QueueBrowseServlet</servlet-class>
85 <async-supported>true</async-supported>
86 </servlet>
87
88 <!-- servlets for the portfolio demo -->
89 <servlet>
90 <servlet-name>PortfolioPublishServlet</servlet-name>
91 <servlet-class>org.apache.activemq.web.PortfolioPublishServlet</servlet-class>
92 <load-on-startup>1</load-on-startup>
93 <async-supported>true</async-supported>
94 </servlet>
95
96 <!-- servlet mappings -->
97 <servlet-mapping>
98 <servlet-name>AjaxServlet</servlet-name>
99 <url-pattern>/amq/*</url-pattern>
100 </servlet-mapping>
101
102 <servlet-mapping>
103 <servlet-name>MessageServlet</servlet-name>
104 <url-pattern>/message/*</url-pattern>
105 </servlet-mapping>
106
107 <servlet-mapping>
108 <servlet-name>QueueBrowseServlet</servlet-name>
109 <url-pattern>/queueBrowse/*</url-pattern>
110 </servlet-mapping>
111
112 <servlet-mapping>
113 <servlet-name>PortfolioPublishServlet</servlet-name>
114 <url-pattern>/portfolioPublish</url-pattern>
115 </servlet-mapping>
116
117 <welcome-file-list>
118 <welcome-file>index.html</welcome-file>
119 <welcome-file>index.jsp</welcome-file>
120 </welcome-file-list>
121
122 </web-app>