Deploying JAMon in JBOSS AS 7.1.1

WHY JAMon?

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

 

Dependencies: com.jamonapi

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.

2 thoughts on “Deploying JAMon in JBOSS AS 7.1.1

  1. Thanks from belgium!
    It helped me a lot for deploying in 6.2 EAP.
    There were just a small difference. I had to specify javax.servlet instead of javax.servlet.api
    Regards,

    Laurent

    • Hi Laurent, I take note of your fix. Thank you for the comment.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*
Website