ARTEMIS-1491 - removed duplicate Jolokia instance

https://issues.apache.org/jira/browse/ARTEMIS-1491
This commit is contained in:
Andy Taylor 2017-10-31 14:18:24 +00:00 committed by Justin Bertram
parent de69673fc0
commit 804e12c7ce
7 changed files with 4 additions and 31 deletions

View File

@ -1,6 +1,5 @@
<!-- The web server is only bound to localhost by default --> <!-- The web server is only bound to localhost by default -->
<web bind="${web.protocol}://${http.host}:${http.port}" path="web"${extra.web.attributes}> <web bind="${web.protocol}://${http.host}:${http.port}" path="web"${extra.web.attributes}>
<app url="jolokia" war="jolokia.war"/>
<app url="activemq-branding" war="activemq-branding.war"/> <app url="activemq-branding" war="activemq-branding.war"/>
<app url="artemis-plugin" war="artemis-plugin.war"/> <app url="artemis-plugin" war="artemis-plugin.war"/>
<app url="console" war="console.war"/> <app url="console" war="console.war"/>

View File

@ -164,11 +164,6 @@
<groupId>org.apache.tomcat</groupId> <groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId> <artifactId>tomcat-servlet-api</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-war</artifactId>
<type>war</type>
</dependency>
<!-- Management Console Dependencies --> <!-- Management Console Dependencies -->
<dependency> <dependency>

View File

@ -135,14 +135,6 @@
<outputDirectory>web/api</outputDirectory> <outputDirectory>web/api</outputDirectory>
<unpack>true</unpack> <unpack>true</unpack>
</dependencySet> </dependencySet>
<dependencySet>
<includes>
<include>org.jolokia:jolokia-war:war</include>
</includes>
<outputDirectory>web</outputDirectory>
<unpack>false</unpack>
<outputFileNameMapping>jolokia.war</outputFileNameMapping>
</dependencySet>
<!-- Management Console Dependencies --> <!-- Management Console Dependencies -->
<dependencySet> <dependencySet>

View File

@ -54,7 +54,6 @@ public class WebServerComponent implements ExternalComponent {
private HandlerList handlers; private HandlerList handlers;
private WebServerDTO webServerConfig; private WebServerDTO webServerConfig;
private URI uri; private URI uri;
private String jolokiaUrl;
private String consoleUrl; private String consoleUrl;
private List<WebAppContext> webContexts; private List<WebAppContext> webContexts;
private ServerConnector connector; private ServerConnector connector;
@ -103,9 +102,6 @@ public class WebServerComponent implements ExternalComponent {
for (AppDTO app : webServerConfig.apps) { for (AppDTO app : webServerConfig.apps) {
WebAppContext webContext = deployWar(app.url, app.war, warDir); WebAppContext webContext = deployWar(app.url, app.war, warDir);
webContexts.add(webContext); webContexts.add(webContext);
if (app.war.startsWith("jolokia")) {
jolokiaUrl = webServerConfig.bind + "/" + app.url;
}
if (app.war.startsWith("console")) { if (app.war.startsWith("console")) {
consoleUrl = webServerConfig.bind + "/" + app.url; consoleUrl = webServerConfig.bind + "/" + app.url;
} }
@ -137,10 +133,9 @@ public class WebServerComponent implements ExternalComponent {
} }
server.start(); server.start();
ActiveMQWebLogger.LOGGER.webserverStarted(webServerConfig.bind); ActiveMQWebLogger.LOGGER.webserverStarted(webServerConfig.bind);
if (jolokiaUrl != null) {
ActiveMQWebLogger.LOGGER.jolokiaAvailable(jolokiaUrl);
}
if (consoleUrl != null) { if (consoleUrl != null) {
ActiveMQWebLogger.LOGGER.jolokiaAvailable(consoleUrl + "/jolokia");
ActiveMQWebLogger.LOGGER.consoleAvailable(consoleUrl); ActiveMQWebLogger.LOGGER.consoleAvailable(consoleUrl);
} }
} }

View File

@ -471,7 +471,7 @@ HTTP agent deployed as a Web Application. Jolokia is a remote
JMX-over-HTTP bridge that exposes MBeans. For a full guide as JMX-over-HTTP bridge that exposes MBeans. For a full guide as
to how to use it refer to [Jolokia Documentation](http://www.jolokia.org/documentation.html), to how to use it refer to [Jolokia Documentation](http://www.jolokia.org/documentation.html),
however a simple example to query the broker's version would however a simple example to query the broker's version would
be to use a browser and go to the URL [http://username:password@localhost:8161/jolokia/read/org.apache.activemq.artemis:broker="0.0.0.0"/Version](). be to use a browser and go to the URL [http://username:password@localhost:8161/console/jolokia/read/org.apache.activemq.artemis:broker="0.0.0.0"/Version]().
This would give you back something like the following: This would give you back something like the following:

View File

@ -748,7 +748,7 @@ Artemis comes with a web console that allows user to browse Artemis documentatio
web access is plain HTTP. It is configured in `bootstrap.xml`: web access is plain HTTP. It is configured in `bootstrap.xml`:
<web bind="http://localhost:8161" path="web"> <web bind="http://localhost:8161" path="web">
<app url="jolokia" war="jolokia-war-1.3.5.war"/> <app url="console" war="console.war"/>
</web> </web>
Alternatively you can edit the above configuration to enable secure access using HTTPS protocol. e.g.: Alternatively you can edit the above configuration to enable secure access using HTTPS protocol. e.g.:

View File

@ -95,7 +95,6 @@
<johnzon.version>0.9.5</johnzon.version> <johnzon.version>0.9.5</johnzon.version>
<json-p.spec.version>1.0-alpha-1</json-p.spec.version> <json-p.spec.version>1.0-alpha-1</json-p.spec.version>
<javax.inject.version>1</javax.inject.version> <javax.inject.version>1</javax.inject.version>
<jolokia.version>1.3.7</jolokia.version>
<hawtbuff.version>1.11</hawtbuff.version> <hawtbuff.version>1.11</hawtbuff.version>
<jb.logmanager.version>2.0.3.Final</jb.logmanager.version> <jb.logmanager.version>2.0.3.Final</jb.logmanager.version>
<jb.slf4j-jboss-logmanager.version>1.0.3.GA</jb.slf4j-jboss-logmanager.version> <jb.slf4j-jboss-logmanager.version>1.0.3.GA</jb.slf4j-jboss-logmanager.version>
@ -636,13 +635,6 @@
<artifactId>tomcat-servlet-api</artifactId> <artifactId>tomcat-servlet-api</artifactId>
<version>8.5.5</version> <version>8.5.5</version>
</dependency> </dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-war</artifactId>
<type>war</type>
<version>${jolokia.version}</version>
<!-- License: Apache 2.0 -->
</dependency>
<!-- ## End Jetty Wed Dependencies ## --> <!-- ## End Jetty Wed Dependencies ## -->
<dependency> <dependency>