I've already done that.  Here is what the class looks like:
@Stateful
@Scope(EVENT)
@Name("register")
@Interceptors(SeamInterceptor.class)
public class RegisterAction implements Register
{
                                                                                
                                            
   @In
   private User user;
......

After pressing the "Register" button in the app, it appears that the 
SeamInterceptor is getting called.  Here is the call sequence:

SeamInterceptor.aroundInvoke method called.

   @AroundInvoke
   public Object aroundInvoke(InvocationContext invocation) throws Exception
   {
      if ( !getUnproxiedClass( invocation.getTarget() 
).isAnnotationPresent(Name.class) )
      {
         //not a Seam component
         return invocation.proceed();
      }

invocation.proceed called.

eventually, RegisterAction.register method called, but "user" is null.

SeamInterceptor is set up in ejb-jar.xml  *and* I have also tried it with and 
without the
@Interceptors(SeamInterceptor.class) in the RegisterAction class.

Any help would be greatly appreciated.  Thanks,

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

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


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to