I think because your component is a javabean component, you can't use 
@Interceptors directly on it.  Instead, you do something like:

  | 
  | @Name("useIntercept")
  | @LogCrudOperations
  | public class UseIntercept {
  |     
  |     public void persist() {
  |             System.out.println("&&&&&&&&&&&& do persist() &&&&&&&&&&&&");
  |     }
  | 
  | }
  | 
  | @Interceptors(InterceptsTests.class)
  | @Retention(RetentionPolicy.RUNTIME)
  | @Target(ElementType.TYPE)
  | public @interface LogCrudOperations {
  | }
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079226
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to