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

fbenvegna do-not-reply at jboss.com
Wed Oct 31 06:33:56 EDT 2007


I have a EJB3 interceptor inside Stateless with Seam 2.0.0-CR3.
Deployment and invocation from facelet works fine. 
The same ejb method invoked from TestNG doesn't execute interceptor.
Is problem related to embeddable EJB3 container configuration ?
Thank you



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


  | @Stateless
  | @TransactionAttribute(TransactionAttributeType.SUPPORTS)
  | @Interceptors(DomainValidator.class)
  | @Name("groupManager")
  | public class GroupManager extends AbstractManager implements IGroupManager {
  | ...
  | ...
  | 
  | 	public String hello() {
  | 		return "CIAO";
  | 	}
  | 
  | ...
  | }
  | 

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

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



More information about the jboss-user mailing list