[jboss-user] [EJB3] - Re: Plugin required for ejb3 interceptors?
Kai Weingärtner
do-not-reply at jboss.com
Mon Jan 31 09:02:41 EST 2011
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&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110131/2376ac4d/attachment.html
More information about the jboss-user
mailing list