In Hibernate why is my custom Hibernate interceptor not being fired?

Solution Verified - Updated -

Issue

  • As showed in Hibernate documentation, I created my Interceptor extending the class "org.hibernate.EmptyInterceptor" and I override only the callback methods I needed, i.e., the "onSave" method. After that, I register my Interceptor in the "hibernate.cfg.xml" but it is never executed

    <property name="hibernate.ejb.interceptor">br.com.synchro.sped.hibernate.interceptor.AtribuiDataHoraInterceptor</property>
    

Environment

  • JBoss Application Server (AS) 4.0.5

  • JBoss Hibernate 3.2.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.