1 Reply Latest reply on Aug 30, 2005 1:00 PM by bill.burke

    Pointcut question

    sharman

      Hi,

      Is it possible to specify a pointcut for the catch block?? In my program I want to intercept a checked exception. So I want when an exception is thrown and a catch block is called, the interceptor should be invoked. Is it possible to do with JBoss AOP?? I am using jdk1.4.2, JBoss AOP 1.3.1, and JBOss 4.0.

      thanks,
      -NS

        • 1. Re: Pointcut question
          bill.burke

          no, but you can do a pointcut pattern based on the throws clause of the method.

          * *->*(..) throws java.sql.SQLException
          


          What is the use case intercepting the catch block? Thanks