6 Replies Latest reply on Jun 5, 2006 5:06 PM by Dave Whittaker

    Interception of subclass methods

    Dave Whittaker Novice

      I'm having a problem with SFSB inheritence that seems very odd to me. I have an abstract class/interface which is extended by a concrete implementation. The superclass defines an abstract getEntityManager() method which returns an EntityManager that has been injected using seam managed persistence in the subclass. Now, the problem is if I access any of the methods defined in the subclass and it's interface, the EntityManager is injected and everything works fine, but if I call a method defined in the superclass/interface it does not appear to be intercepted, no injection occurs and I get a NullPointerException. I have @Intercept(InterceptionType.ALWAYS) set on all the relevent classes and I can't imagine this would be considered a feature. Can anybody tell me what's going on?