0 Replies Latest reply on Dec 10, 2008 11:34 AM by Przemyslaw Jaskierski

    Per-hibernate-session scoped interceptor

    Przemyslaw Jaskierski Newbie


      I need to use HibernateSession-scoped (not HibernateSessionFactory-scoped) interceptor in Seam-managed HibernateSession. Normally I would do this by:

      Session session = hibernateSessionFactory.openSession(new MyHibernateInterceptor());
      //now intercept all operations on this session

      But how to accomplish this with Seam-managed session? How/where inject my interceptor?

      Environmnet: clean Tomcat 6.0.18, clean Hibernate (no JPA).