How to configure event listeners using Hibernate 4 in EAP 6?

Solution Verified - Updated -

Issue

The Hibernate event listener configured in hibernate.cfg.xml as following work fine in EAP 5 with Hibernate 3.

<event type="pre-update">
    <listener class="mypackage.listeners.PreEventListener"/>
</event>

However, it doesn't work in EAP6 with Hibernate 4 any more.

How to configure event listeners in EAP 6 with Hibernate 4?

Environment

  • JBoss Enterprise Application Platform(EAP) 6.x
  • Hibernate 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content