[jboss-user] [EJB 3.0] - Re: How to intercept EJBs residing in another jar-file?

jaikiran do-not-reply at jboss.com
Wed Apr 23 11:17:36 EDT 2008


I haven't tried using the interceptors with ejb-jar.xml files. I have tried them with annotations. Why don't you use annotations for this? Something like:

Bean1 in app1.jar containing this:

@Stateless
  | @Interceptors (GlobalInterceptor.class)
  | public class Bean1 implements MyBean1 {
  | 

And a similar one in 

Bean2 in mylib.jar


  | @Stateless
  | @Interceptors (GlobalInterceptor.class)
  | public class Bean2 implements MyBean2 {



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146233#4146233

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146233



More information about the jboss-user mailing list