How to add Hawtio plugins when running the standalone jar

523 Views Asked by At

I run hawtio via the standalone jar and am not sure how to add plugins or if its even possible.

From the docs I understand the static linking and deployment unit when using a container like tomcat or jboss but not how to add plugins when running the standalone jar.

Is it possible to build the jar with the plugins or is the only way to use a webapp container?

2

There are 2 best solutions below

3
On BEST ANSWER

You need to add your custom plugins as a .war file to the classpath, when you run the standalone hawtio.

And for how to build a custom plugin, then check some of the examples here

0
On

I believe you can't use static linking when you run the standalone .jar hawtio. Instead, you build the plugins as .war and put them into plugins folder

http://hawt.io/plugins/howPluginsWork.html - look at Separate Deployment Unit