Hello Carlo,
thanks for your quick response.
Have you used ejb3 Interceptors in JBoss AS 5.1? I stick to the tutorial, but my EJB-Method is not being intercepted.
This is my (test) code:
Interceptor
public class CallMonitoringInterceptor {
private static final Logger logger = LoggerFactory.getLogger(CallMonitoringInterceptor.class);
@javax.interceptor.AroundInvoke
public Object monitorCall(InvocationContext ctx) throws Exception {
logger.info("monitoring {}...", ctx.getMethod().toGenericString());
return ctx.proceed();
}
}
Intercepted business method
@Override
@javax.interceptor.Interceptors({CallMonitoringInterceptor.class})
public Object service(String param1) throws Exception {
...
}
Am I missing anything?
Thanks in advance,
Kai