Hi again, i think its a problem with tomcat cause it even works with weld but i have the same app hosted at openshift(JBoss + weld 1.1.4) and the AroundInvoke works in the superclass.
so any clues are welcome. Att, Rafael M. Pestano Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul Graduando em Ciência da Computação UFRGS http://code.google.com/p/jsf-conventions-framework/ http://rpestano.wordpress.com http://twitter.com/realpestano ----- Mensagem original ----- De: Rafael Pestano <[email protected]> Para: "[email protected]" <[email protected]> Cc: Enviadas: Segunda-feira, 25 de Junho de 2012 20:43 Assunto: Defining interceptor @AroundInvoke in superclass fails in Openwebbeans Hi guys, the CDI interceptor below works without problems in weld but fails in OWB, i want to know if its the expected behavior(weld is not following the spec), if im doing something wrong or if its a bug: I define the interceptor logic in a superclass, eg: public abstract class AbstractSecurityInterceptor implements Serializable { @AroundInvoke public Object checkPermition(InvocationContext ic) throws Exception { if(userHasPermition()){ return ic.proceed(); } else { addFacesMessage("Some message"); } } public abstract boolean userHasPermition(); } @Interceptor @MyQualifier public class MyInterceptor extends AbstractSecurityInterceptor { public boolean userHasPermition(){ //will never be invoked in Openwebbeans but works with weld. } } thanks in advance. Att, Rafael M. Pestano Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul Graduando em Ciência da Computação UFRGS http://code.google.com/p/jsf-conventions-framework/ http://rpestano.wordpress.com http://twitter.com/realpestano
