If you use EJB, all you have to do is add the melody ringtone files, and then to the eja-jar.xml file that you use:
... <interceptors> <interceptor> <interceptor-class>net.bull.javamelody.MonitoringInterceptor</interceptor-class> </interceptor> </interceptors> <assembly-descriptor> <interceptor-binding> <ejb-name>*</ejb-name> <interceptor-class>net.bull.javamelody.MonitoringInterceptor</interceptor-class> </interceptor-binding> </assembly-descriptor> ....
source share