-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Interceptor.onLoad not called
PostPosted: Fri Aug 17, 2007 9:50 am 
Newbie

Joined: Tue Aug 09, 2005 4:01 am
Posts: 7
Hi,
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 don't know what is wrong in the Hibernate implementation.

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.

I can try declaring event listeners instead of the interceptor but I want to know why the interceptor doesn't work as it is supposed to. Is it possible that this is due to EJB3 specs?

I use JBoss 4.2.1.GA which has a Hibernate 3.2.1 SP1 implementation.

_________________
Regards,
Alexander Kamburov

wise_guybg at yahoo.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.