[jboss-user] [JBoss Seam] - Re: TestNG and EJB3 interceptors

fbenvegna do-not-reply at jboss.com
Mon Nov 5 10:18:29 EST 2007


SeamInterceptor doesn't work


  | @Target(ElementType.TYPE)
  | @Retention(RetentionPolicy.RUNTIME)
  | @Interceptors(DomainValidator.class) 
  | public @interface Validated {
  | 	
  | }
  | 


  | @Stateless
  | @Validated
  | @Interceptors(SeamInterceptor.class)
  | @Name("groupManager")
  | @TransactionAttribute(TransactionAttributeType.SUPPORTS)
  | public class GroupManager extends AbstractManager implements IGroupManager {
  | ...
  | ...
  | }
  | 


  | @Interceptor
  | public class DomainValidator {
  | 
  | 	@AroundInvoke
  | 	public Object validate(InvocationContext invocationContext) throws Exception {
  | 		Method method = invocationContext.getMethod();
  | 		Object[] parameters = invocationContext.getParameters();
  | 		
  | 		Object instance = invocationContext.getTarget();
  | 		
  | 		System.out.println("========================================>");
  | 		
  | 		return invocationContext.proceed();
  | 	}
  | }
  | 

Please, help me
Have you any idea ?

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

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



More information about the jboss-user mailing list