mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-4219 - jolokia support
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1420809 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
05fb2bbcc9
commit
44a7ffa946
|
@ -30,6 +30,15 @@
|
||||||
<name>ActiveMQ :: Assembly</name>
|
<name>ActiveMQ :: Assembly</name>
|
||||||
<description>Puts together the ActiveMQ distribution</description>
|
<description>Puts together the ActiveMQ distribution</description>
|
||||||
|
|
||||||
|
<!-- Maven repository hosting Jolokia -->
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>labs-consol-release</id>
|
||||||
|
<name>ConSol* Labs Repository (Releases)</name>
|
||||||
|
<url>http://labs.consol.de/maven/repository</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<!-- activemq -->
|
<!-- activemq -->
|
||||||
|
@ -362,6 +371,16 @@
|
||||||
<artifactId>xmlParserAPIs</artifactId>
|
<artifactId>xmlParserAPIs</artifactId>
|
||||||
<version>2.6.2</version>
|
<version>2.6.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jolokia</groupId>
|
||||||
|
<artifactId>jolokia-core</artifactId>
|
||||||
|
<version>1.0.6</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.googlecode.json-simple</groupId>
|
||||||
|
<artifactId>json-simple</artifactId>
|
||||||
|
<version>1.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
|
@ -223,6 +223,10 @@
|
||||||
<!-- Atom/RSS support -->
|
<!-- Atom/RSS support -->
|
||||||
<include>rome:rome</include>
|
<include>rome:rome</include>
|
||||||
<include>jdom:jdom</include>
|
<include>jdom:jdom</include>
|
||||||
|
|
||||||
|
<!-- REST API -->
|
||||||
|
<include>org.jolokia:jolokia-core</include>
|
||||||
|
<include>com.googlecode.json-simple:json-simple</include>
|
||||||
</includes>
|
</includes>
|
||||||
</dependencySet>
|
</dependencySet>
|
||||||
</dependencySets>
|
</dependencySets>
|
||||||
|
|
|
@ -59,6 +59,11 @@
|
||||||
<property name="logUrlOnStart" value="true" />
|
<property name="logUrlOnStart" value="true" />
|
||||||
<property name="parentLoaderPriority" value="true" />
|
<property name="parentLoaderPriority" value="true" />
|
||||||
</bean>
|
</bean>
|
||||||
|
<bean class="org.eclipse.jetty.webapp.WebAppContext">
|
||||||
|
<property name="contextPath" value="/api" />
|
||||||
|
<property name="resourceBase" value="${activemq.home}/webapps/api" />
|
||||||
|
<property name="logUrlOnStart" value="true" />
|
||||||
|
</bean>
|
||||||
<bean class="org.eclipse.jetty.server.handler.ResourceHandler">
|
<bean class="org.eclipse.jetty.server.handler.ResourceHandler">
|
||||||
<property name="directoriesListed" value="false" />
|
<property name="directoriesListed" value="false" />
|
||||||
<property name="welcomeFiles">
|
<property name="welcomeFiles">
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
<?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 web-app
|
||||||
|
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
||||||
|
"http://java.sun.com/dtd/web-app_2_3.dtd">
|
||||||
|
|
||||||
|
<web-app>
|
||||||
|
|
||||||
|
<display-name>Apache ActiveMQ REST API</display-name>
|
||||||
|
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>MessageServlet</servlet-name>
|
||||||
|
<servlet-class>org.apache.activemq.web.MessageServlet</servlet-class>
|
||||||
|
<load-on-startup>1</load-on-startup>
|
||||||
|
<!--
|
||||||
|
Uncomment this parameter if you plan to use multiple consumers over REST
|
||||||
|
<init-param>
|
||||||
|
<param-name>destinationOptions</param-name>
|
||||||
|
<param-value>consumer.prefetchSize=1</param-value>
|
||||||
|
</init-param>
|
||||||
|
-->
|
||||||
|
</servlet>
|
||||||
|
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>jolokia-agent</servlet-name>
|
||||||
|
<servlet-class>org.jolokia.http.AgentServlet</servlet-class>
|
||||||
|
<load-on-startup>1</load-on-startup>
|
||||||
|
</servlet>
|
||||||
|
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>MessageServlet</servlet-name>
|
||||||
|
<url-pattern>/message/*</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>jolokia-agent</servlet-name>
|
||||||
|
<url-pattern>/jolokia/*</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
|
||||||
|
</web-app>
|
Loading…
Reference in New Issue