This commit is contained in:
Justin Bertram 2017-10-31 09:33:10 -05:00
commit 80855e0789
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 -->
<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="artemis-plugin" war="artemis-plugin.war"/>
<app url="console" war="console.war"/>

View File

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

View File

@ -135,14 +135,6 @@
<outputDirectory>web/api</outputDirectory>
<unpack>true</unpack>
</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 -->
<dependencySet>

View File

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

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 bind="http://localhost:8161" path="web">
<app url="jolokia" war="jolokia-war-1.3.5.war"/>
<app url="console" war="console.war"/>
</web>
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>
<json-p.spec.version>1.0-alpha-1</json-p.spec.version>
<javax.inject.version>1</javax.inject.version>
<jolokia.version>1.3.7</jolokia.version>
<hawtbuff.version>1.11</hawtbuff.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>
@ -636,13 +635,6 @@
<artifactId>tomcat-servlet-api</artifactId>
<version>8.5.5</version>
</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 ## -->
<dependency>