This plugin provides JMX for hawtio
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
bower install --save hawtio-jmx
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.
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!