i am using jboss-4.0.2;i placed p6spy.jar in default/lib directory;
try to put mbean code in jboss-service.xml
but i am getting below error;
org.jboss.deployment.DeploymentException: Unexpected error during load of: com.p6spy.management.jboss.P6SpyManager, msg=com/p6spy/management/jboss/P6SpyManagerMBean; - nested throwable: (java.lang.ClassNotFoundException: Unexpected error during load of: com.p6spy.management.jboss.P6SpyManager, msg=com/p6spy/management/jboss/P6SpyManagerMBean)
see this link
http://www.p6spy.com/documentation/other.htm#jboss_jmx