[jboss-jira] [JBoss JIRA] Commented: (HIBERNATE-70) Interceptor.onLoad not called from EJB3 event listeners

Guillaume Jeudy (JIRA) jira-events at lists.jboss.org
Mon May 12 10:08:22 EDT 2008


    [ http://jira.jboss.com/jira/browse/HIBERNATE-70?page=comments#action_12412466 ] 
            
Guillaume Jeudy commented on HIBERNATE-70:
------------------------------------------

The issue still occurs with JBoss 4.2.2 GA, Hibernate 3.2.6 GA, Seam 2.0.1.

I will try the event listener approach by subclassing EJB3PostLoadEventListener.

> Interceptor.onLoad not called from EJB3 event listeners
> -------------------------------------------------------
>
>                 Key: HIBERNATE-70
>                 URL: http://jira.jboss.com/jira/browse/HIBERNATE-70
>             Project: Hibernate
>          Issue Type: Bug
>         Environment: JBoss 4.2.1.GA, Hibernate 3.2.1 SP1, Seam 1.2.1.GA
>            Reporter: Wise Guy
>         Assigned To: Steve Ebersole
>            Priority: Minor
>   Original Estimate: 1 day
>  Remaining Estimate: 1 day
>
> I have a Seam 1.2.1.GA application. I installed an implementation of the interface org.hibernate.Interceptor and declared it in the persistence.xml as hibernate.ejb.interceptor.
> The interceptor works (ex.: onSave(), onFlushDirty()) except that onLoad() doesn't get called. 
> I guess that there is a problem with the DefaultPreLoadEventListener who should call my interceptor. He is defined in org.hibernate.event.EventListeners as a default listener to the event "pre-load". I also found that the DefaultLoadEventListener.onLoad() gets called but DefaultPreLoadEventListener.onPreLoad() not. Does that have something to do with EJB3? I have found that there is an EJB3PostLoadEventListener that is used when run under JPA and the default listeners are overridden.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list