3 Replies Latest reply on Oct 19, 2004 9:53 AM by bill.burke

    Intercepting Home-Interfaces

    pilhuhn

      Hi,
      is it possible to intercept calls to home interfaces with JBossAOP? With the old interceptors, this is fairly easy.

      Things that I am thinking of are e.g. measure the timing of entity-Finders.

      Cheers
      Heiko

        • 1. Re: Intercepting Home-Interfaces
          bill.burke

          No, it is not possible with JBoss AOP. The reason? It is because there is no class to massage...Our EJB implementation does not generate any class that implements the home interface. If you implemented BMP customer finders or home methods on the bean class, then yes, JBoss AOP could be used.

          Bill

          • 2. Re: Intercepting Home-Interfaces
            pilhuhn

            Do I understand it correctly, that the HomeInterface is implemented by a proxy? If so, would a $implements (like the $instanceof one) help to do something like

            pointcut="call($implements(javax.ejb.EntityHome->findBy*(..)) ?

            I think a $implements expression would be nice anyway. :-)

            • 3. Re: Intercepting Home-Interfaces
              bill.burke

              No, that is incorrect. Nothing implements the home interface (not even customer finders and home methods) The EJB container handles home invocations dynamically or these methods are implemented in methods on the Bean class as ejbFindMETHOD or ejbHomeMETHOD methods.


              Bill