-->
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.  [ 3 posts ] 
Author Message
 Post subject: Event listener stack
PostPosted: Fri Nov 18, 2005 7:20 pm 
Newbie

Joined: Fri Nov 18, 2005 7:07 pm
Posts: 1
I have a requirement where I need to have multiple event listeners for the same event (PostInsert). Does anybody know if Hibernate 3 has the capability to register multiple event listeners? In hopes that it was already implemented, I tried using the SessionEventListenerConfig class to register two Listeners, but the last one won.

Specifically, I am trying to update a search index and a history table using two listeners on the PostInsert event. In the future, I may have other listeners that I need to put on the stack for this and other events, so if Hibernate doesn't have this functionality, I will develop it.

any ideas?
-Steve


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 21, 2005 3:20 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
You have to do this yourself.

HTH
Ernst


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 21, 2005 4:42 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Actually Hibernate 3.1 have a listener stack per event

_________________
Emmanuel


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

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.