JAMon is an excelent Java Monitor we use to monitor and accelerate all our applications without having to do heavy modifications. Depending on case, even none. But usually we add our own spice to the mix so we get better results. We have found that it’s not drop and deploy for JBOSS AS 7 but easy enough. So we will share how to do it.
See updates below… It’s not working for now.
CREATE A JBOSS MODULE
Under JBOSS modules directory (/modules) create the folder the structure /modules/com/jamonapi
$> cd $> mkdir -p /modules/com/jamonapi/main/
Copy the lib inside (jamon-2.79) and create the following module.xml:
<module xmlns="urn:jboss:module:1.0" name="com.jamonapi"> <resources> <resource-root path="jamon-2.79.jar" /> </resources> <dependencies> <module name="javax.api"/> <module name="javax.servlet"/> </dependencies> </module>
MODIFY JAMON WAR
You need to add dependency to the new module in war. So open MANIFEST.MF Inside the .war and add
DEPLOY JAMON TO STANDALONE
Now you can deploy the .war to the deployments directory. This is under standalone/deployments.
Hope it helps.
UPDATE: It seems that even if this configuration is correct. Jamon is not starting, so a modification here must be done.