Kai Weingärtner [
http://community.jboss.org/people/KaiWeing] created the discussion
"Re: Plugin required for ejb3 interceptors?"
To view the discussion, visit:
http://community.jboss.org/message/584347#584347
--------------------------------------------------------------
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
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/584347#584347]
Start a new discussion in EJB3 at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]