i am using jboss-4.0.2;try to put mbean code in jboss-service.xml;i placed p6spy.jar in default/lib directory;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)
http://www.p6spy.com/documentation/other.htm#jboss_jmx