|
ActiveMQ example source code file (web.xml)
The ActiveMQ web.xml source code<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <description> Apache ActiveMQ Web Console </description> <display-name>ActiveMQ Console <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Configuration of the SiteMesh Filter. --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <filter> <filter-name>sitemesh <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter </filter> <filter-mapping> <filter-name>sitemesh <url-pattern>/* </filter-mapping> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Expose Spring POJOs to JSP . --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <filter> <filter-name>spring <filter-class>org.apache.activemq.web.filter.ApplicationContextFilter </filter> <filter-mapping> <filter-name>spring <url-pattern>/* </filter-mapping> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- ActiveMQ servlets --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- the subscription REST servlet --> <servlet> <servlet-name>AjaxServlet <servlet-class>org.apache.activemq.web.AjaxServlet <load-on-startup>1 </servlet> <servlet-mapping> <servlet-name>AjaxServlet <url-pattern>/ajax/* </servlet-mapping> <servlet> <servlet-name>SendServlet <servlet-class>org.apache.activemq.web.MessageServlet <load-on-startup>1 </servlet> <servlet-mapping> <servlet-name>SendServlet <url-pattern>/send/* </servlet-mapping> <!-- the queue browse servlet --> <servlet> <servlet-name>QueueBrowseServlet <servlet-class>org.apache.activemq.web.QueueBrowseServlet </servlet> <servlet-mapping> <servlet-name>QueueBrowseServlet <url-pattern>/queueBrowse/* </servlet-mapping> <!-- track the session usage for web JMS clients --> <filter> <filter-name>session <filter-class>org.apache.activemq.web.SessionFilter </filter> <filter> <filter-name>spring-rq <filter-class>org.springframework.web.filter.RequestContextFilter </filter> <filter-mapping> <filter-name>session <url-pattern>*.jsp </filter-mapping> <filter-mapping> <filter-name>spring-rq <url-pattern>/* </filter-mapping> <!-- enable audit logging --> <filter> <filter-name>audit <filter-class>org.apache.activemq.web.AuditFilter </filter> <filter-mapping> <filter-name>audit <url-pattern>*.action </filter-mapping> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Spring listener. --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <listener> <listener-class>org.apache.activemq.web.WebConsoleStarter </listener> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Configuration of the Spring MVC dispatcher --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <servlet> <servlet-name>dispatcher <servlet-class>org.springframework.web.servlet.DispatcherServlet <load-on-startup>2 </servlet> <servlet-mapping> <servlet-name>dispatcher <url-pattern>*.action </servlet-mapping> <welcome-file-list> <welcome-file>index.html <welcome-file>index.jsp </welcome-file-list> <!-- JNDI Stuff <resource-ref> <res-ref-name>jms/connectionFactory <res-type>javax.jms.ConnectionFactory <res-auth>Container </resource-ref> <resource-ref> <res-ref-name>jmx/url <res-type>java.lang.String </resource-ref> --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Factor out common headers in JSP pages --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> <jsp-config> <jsp-property-group> <url-pattern>*.jsp <include-prelude>/WEB-INF/jspf/headertags.jspf </jsp-property-group> </jsp-config> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~ --> <!-- Error pages --> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~ --> <error-page> <error-code>404 <location>/404.html </error-page> <error-page> <exception-type>java.lang.Exception <location>/500.html </error-page> </web-app> Other ActiveMQ examples (source code examples)Here is a short list of links related to this ActiveMQ web.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.