1 Reply Latest reply on Jul 10, 2009 7:29 PM by Rafael Abreu

    Stateless is not a component to the RootInterceptor.

    Rafael Abreu Newbie

      Im using seam with my EAR isalated. And the interceptor of my EJBs no Inject my components. Anyone have this problem?


      I was debuging SeamInterceptor and:




         protected Object invoke(InvocationContext invocation, EventType invocationType) throws Exception
         {
            //The isSeamComponent is false and the interceptor dont Inject anything.
      
      

      
      
            if ( !isSeamComponent || !Lifecycle.isApplicationInitialized())
            {
               //not a Seam component
               return invocation.proceed();
            }
            else if ( Contexts.isEventContextActive() || Contexts.isApplicationContextActive() ) //not sure about the second bit (only needed at init time!)
            {
      
               // a Seam component, and Seam contexts exist
               return createInvocationContext(invocation, invocationType).proceed();
            }
            else
            {            
               //if invoked outside of a set of Seam contexts,
               //set up temporary Seam EVENT and APPLICATION
               //contexts just for this call
               
               Lifecycle.beginCall();         
               try
               {
                  return createInvocationContext(invocation, invocationType).proceed();
               }
               finally
               {
                  Lifecycle.endCall();
               }
            }
         }
      
      
      





      tks.