-->
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.  [ 2 posts ] 
Author Message
 Post subject: multiple interceptors
PostPosted: Sat Dec 04, 2004 4:31 am 
Newbie

Joined: Thu May 13, 2004 7:47 pm
Posts: 11
Hibernate version: 2.1.x

It seems the current SessionFactory API only allows one interceptors per session. What if I have multiple interceptors, such as one for security, one for logging, ect.? How do I add multiple ones to a session?

Of course, if I fully control all the interceptor implementation, I can write one interceptor to have all the functionality. But some of them I don't control and I also want to have a modular way to implement those different functionalities.

Thanks.

- Wei Chen


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 04, 2004 5:35 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Hibernate doesn't suport multiple event listeners.

However maybe this helps: http://www.hibernate.org/92.html

In Hibernate 3 there's a more flexible event system although it doesn't suport multiple listener per event.

HTH
Ernst


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.