/hawtio-jmx

JMX, JVM and tree plugins for hawtio 2.x

Primary LanguageJavaScriptApache License 2.0Apache-2.0

hawtio-jmx

This plugin provides JMX for hawtio

Basic usage

Running this plugin locally

First clone the source

git clone https://github.com/hawtio/hawtio-jmx
cd hawtio-jmx

Next you'll need to install NodeJS and then install the default global npm dependencies:

npm install -g bower gulp slush slush-hawtio-javascript slush-hawtio-typescript typescript

Then install all local nodejs packages and update bower dependencies via:

npm install
bower update

Then to run the web application:

gulp

Install the bower package

bower install --save hawtio-jmx

To test with hawtio v1.x

When developing on hawtio-jmx you can run a JVM with the Java based hawtio 1.x web module. This allows the JMX plugin to have MBeans to work with.

If you do not have hawtio 1.x on your computer then you can clone it

git clone git@github.com:hawtio/hawtio.git

To do so in another shell:

cd hawtio
cd hawtio-web
mvn install
mvn exec:java -DstartLR=false

Then when you run gulp then the hawtio-jmx web console will automatic detect the running JVM with hawtio 1.x and you have some MBeans to work with.

Output build to a different directory

When developing this plugin in a dependent console you can change the output directory where the compiled .js and .css go. Just use the 'out' flag to set a different output directory, for example:

gulp watch --out=../fabric8-console/libs/hawtio-jmx/dist/

Whenever the build completes the compiled .js file will be put into the target directory. Don't forget to first do a gulp build without this flag before committing changes!