[jboss-user] [JBoss Seam] - Re: the intercept component don't work!

matt.drees do-not-reply at jboss.com
Wed Aug 29 11:19:13 EDT 2007


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



More information about the jboss-user mailing list