users@glassfish.java.net

Re: Interceptors & inheritance

From: <glassfish_at_javadesktop.org>
Date: Tue, 05 Feb 2008 07:28:32 PST

Hi Jacek,

The original question was about interceptors on superclasses of ejb3 bean class, not on superclasses of interceptors. Your first quotation (EJB 3.0 - 12.4.1) talks about the latter.

Your second quotation is about interceptor METHODS on superclasses of ejb3 bean class, not interceptors on superclasses of ejb3 bean class. Give an example,

abstract public class FooBeanBase implements FooRemote {
  @AroundInvoke
  private intercept(InvocationContext inv) throws Exception {
     return inv.proceed();
  }

@Stateless
public class FooBean extends FooBeanBase {
...
}

In the above example, the FooBeanBase.interceptr method will be called for FooBean's business methods.

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=257498