EJB methods as well as any exceptions they throw will be monitored. The information can be viewed in /jamon/jamonadmin.jsp. EJB requires no coding changes to your EJBs. Simply follow these steps to enable the EJB interceptor on your app server:
<?xml version="1.0" encoding="UTF-8"?r> <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"> <assembly-descriptor> <!-- Default interceptor that will apply to all methods for all beans in deployment --> <interceptor-binding> <ejb-name>*</ejb-name> <interceptor-class>com.jamonapi.aop.JAMonEJBInterceptor</interceptor-class> </interceptor-binding> </assembly-descriptor> </ejb-jar>