1 Reply Latest reply on Nov 27, 2007 6:55 AM by pmuir

    Seam 1.2.1 + POJO + @Interceptor: possible?

    titou09

      is it possible to use custom seam interceptor around invocation of methods of Seam POJO Components?
      In the Seam 1.2.1 manual, section 5.2, it is written "You can even use Seam interceptors with JavaBean components, not just EJB3 beans!"

      How to do that? is there some sample somewhere?

      I tried to use the @Interceptor annotation without success..

      My goal is to catch Hibernate exceptions when a method of some component annoted with @Transactional is called, some problem occured and the transaction is rollback, and to "convert" some of them to a business exception...