Jolokia 0.83 has been released which now contains a Roo addon.
Version 0.83 contains the following features:
LogService
interface definition. Read more about the OSGi agents in the reference manualWith the Jolokia Roo addon it is now easier than ever to include the Jolokia servlet into your Roo managed web projects so that your application (and the servlet container your webapp is running in) can be easily monitored e.g. via Nagios and check_jmx4perl.
The Jolokia Roo addon is not yet available via the central addon registry roobot, so currently you have to add the addon manually. The following examples demonstrates a sample roo session from scratch, which will setup a Jolokia servlet:
// Create a small, hot webapplication project --topLevelPackage demo persistence setup --database H2_IN_MEMORY --provider HIBERNATE entity --class ~.domain.Chili field string --fieldName name field string --fieldName family field number --fieldName scoville --type java.lang.Integer controller all --package ~.web
// Add Jolokia Roo-Addon directly until roboot.xml is updated. Please note, // that this will prevent any PGP checks! osgi start --url http://labs.consol.de/maven/repository/org/jolokia/jolokia-roo/0.83/jolokia-roo-0.83.jar
// Setup Jolokia jolokia setup
The final jolokia setup
will perform the following steps:
jolokia-core
(0.83) in the project’s pom.xml
/jolokia
to the projec’s web.xml
. In the example above, if you start the webapp with a mvn jetty:run
, the agent’s url is http://localhost:8080/demo/jolokia
There are some options to tune the behaviour of the addon. Please refer to the manual for details.