5 Replies Latest reply on Apr 25, 2011 10:21 AM by bustosadrian.bustosadrian.gmail.com

    Intercepto doesn't work around seam beans methods

    bustosadrian.bustosadrian.gmail.com

      Hi!


      I've this bean


      @Name("sBean")
      public class SBean {
      
           public void sayHello(){
                System.out.println("Hello World!");
           }     
      }
      



      And this interceptor


      @Interceptor(around = { BijectionInterceptor.class,
                ConversationInterceptor.class }, within = RemoveInterceptor.class)
      public class EJBInvokerInterceptor {
      
           @AroundInvoke
           public Object intercept(InvocationContext invocation) throws Exception {
                //DO SOMETHING
           }
      }
      



      But this interceptor does not work around seam Beans method's invocations.
      Only on Stateless/Stateful EJBs.


      Is there any way to make this intercepto works around the first decribed Bean?


      Thanx.