mirror of https://github.com/apache/activemq.git
added an embedded jetty server to host the web-console in the default activemq.xml for AMQ-1194
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@517713 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a7344588c9
commit
3028a2faa1
|
@ -282,17 +282,6 @@
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<forkMode>pertest</forkMode>
|
<forkMode>pertest</forkMode>
|
||||||
<excludes>
|
|
||||||
<!-- These tests run too slow to execute as part of the unit tests -->
|
|
||||||
<exclude implementation="java.lang.String">**/DefaultStoreBrokerTest.*</exclude>
|
|
||||||
<exclude implementation="java.lang.String">**/ActiveIOTransportBrokerTest.*</exclude>
|
|
||||||
<!-- These tests fails -->
|
|
||||||
<exclude implementation="java.lang.String">**/SpringTest.*</exclude>
|
|
||||||
<exclude implementation="java.lang.String">**/*QuickJournalRecoveryBrokerTest.*</exclude>
|
|
||||||
</excludes>
|
|
||||||
<includes>
|
|
||||||
<include implementation="java.lang.String">**/*RetroactiveConsumerTestWithDestinationBasedBufferTest.*</include>
|
|
||||||
</includes>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
|
@ -98,6 +98,23 @@
|
||||||
<include>run.jar</include>
|
<include>run.jar</include>
|
||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
|
|
||||||
|
<!-- lets copy the portions of the web app we need - as we can't exclude stuff from the WAR -->
|
||||||
|
<fileSet>
|
||||||
|
<directory>../activemq-web-console/src/main/webapp</directory>
|
||||||
|
<outputDirectory>/webapps/admin</outputDirectory>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/activemq.xml</exclude>
|
||||||
|
<exclude>**/applicationContext.xml</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>../activemq-web-console/target/classes</directory>
|
||||||
|
<outputDirectory>/webapps/admin/WEB-INF/classes</outputDirectory>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.class</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
</fileSets>
|
</fileSets>
|
||||||
<dependencySets>
|
<dependencySets>
|
||||||
<dependencySet>
|
<dependencySet>
|
||||||
|
@ -166,7 +183,26 @@
|
||||||
<include>opensymphony:sitemesh</include>
|
<include>opensymphony:sitemesh</include>
|
||||||
<include>javax.servlet:jstl</include>
|
<include>javax.servlet:jstl</include>
|
||||||
<include>taglibs:standard</include>
|
<include>taglibs:standard</include>
|
||||||
|
|
||||||
|
<!-- Atom/RSS support -->
|
||||||
|
<include>rome:rome</include>
|
||||||
|
<include>jdom:jdom</include>
|
||||||
</includes>
|
</includes>
|
||||||
</dependencySet>
|
</dependencySet>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- we cannot exclude stuff from inside the war...
|
||||||
|
<dependencySet>
|
||||||
|
<outputDirectory>/webapps/admin</outputDirectory>
|
||||||
|
<unpack>true</unpack>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
<includes>
|
||||||
|
<include>${pom.groupId}:activemq-web-console</include>
|
||||||
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/*.jar</exclude>
|
||||||
|
</excludes>
|
||||||
|
</dependencySet>
|
||||||
|
-->
|
||||||
</dependencySets>
|
</dependencySets>
|
||||||
</assembly>
|
</assembly>
|
||||||
|
|
|
@ -102,7 +102,25 @@
|
||||||
<include>run.jar</include>
|
<include>run.jar</include>
|
||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
|
|
||||||
|
<!-- lets copy the portions of the web app we need - as we can't exclude stuff from the WAR -->
|
||||||
|
<fileSet>
|
||||||
|
<directory>../activemq-web-console/src/main/webapp</directory>
|
||||||
|
<outputDirectory>/webapps/admin</outputDirectory>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/activemq.xml</exclude>
|
||||||
|
<exclude>**/applicationContext.xml</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>../activemq-web-console/target/classes</directory>
|
||||||
|
<outputDirectory>/webapps/admin/WEB-INF/classes</outputDirectory>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.class</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
</fileSets>
|
</fileSets>
|
||||||
|
|
||||||
<dependencySets>
|
<dependencySets>
|
||||||
<dependencySet>
|
<dependencySet>
|
||||||
<outputDirectory>/lib</outputDirectory>
|
<outputDirectory>/lib</outputDirectory>
|
||||||
|
@ -173,6 +191,10 @@
|
||||||
<include>opensymphony:sitemesh</include>
|
<include>opensymphony:sitemesh</include>
|
||||||
<include>javax.servlet:jstl</include>
|
<include>javax.servlet:jstl</include>
|
||||||
<include>taglibs:standard</include>
|
<include>taglibs:standard</include>
|
||||||
|
|
||||||
|
<!-- Atom/RSS support -->
|
||||||
|
<include>rome:rome</include>
|
||||||
|
<include>jdom:jdom</include>
|
||||||
</includes>
|
</includes>
|
||||||
</dependencySet>
|
</dependencySet>
|
||||||
</dependencySets>
|
</dependencySets>
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
</connectors>
|
</connectors>
|
||||||
|
|
||||||
<handlers>
|
<handlers>
|
||||||
<webAppContext contextPath="/admin" resourceBase="webapps" parentLoaderPriority="false" />
|
<webAppContext contextPath="/admin" resourceBase="webapps/admin" parentLoaderPriority="false" />
|
||||||
</handlers>
|
</handlers>
|
||||||
</jetty>
|
</jetty>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
<?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.
|
||||||
|
-->
|
||||||
|
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||||
|
<beans>
|
||||||
|
|
||||||
|
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
|
||||||
|
|
||||||
|
|
||||||
|
<bean id="sessionPool" class="org.apache.activemq.web.SessionPool"/>
|
||||||
|
|
||||||
|
<!-- use the following bean for a local in-JVM broker -->
|
||||||
|
<bean id="brokerQuery" class="org.apache.activemq.web.SingletonBrokerFacade" autowire='constructor' singleton="false"/>
|
||||||
|
|
||||||
|
<bean id="queueBrowser" class="org.apache.activemq.web.QueueBrowseQuery" autowire='constructor' singleton="false"/>
|
||||||
|
<bean id="messageQuery" class="org.apache.activemq.web.MessageQuery" autowire='constructor' singleton="false"/>
|
||||||
|
|
||||||
|
</beans>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<h1>Welcome to Apache ActiveMQ!</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue