-->
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: How to attach Listener when using HibernateContext
PostPosted: Fri Apr 15, 2005 12:57 pm 
Newbie

Joined: Thu Jan 20, 2005 3:02 pm
Posts: 13
Hello,

I'm currenlty using the HibernateContext to retrieve all of my hibernate sessions. I now have the need to attach a hibernate listener to the current session.

The hibernate documentation says that you must do something like:

Code:

Session sessionWithListenerAttached =
             SessionFactory.openSession(myListener);



However, the HibernateContext API doesn't seem like it has a method to specify a listener.

Is there any way to work around this?

Thanks in advance :)


Top
 Profile  
 
 Post subject: was this what you were looking for?
PostPosted: Mon Apr 18, 2005 2:15 pm 
Beginner
Beginner

Joined: Mon Sep 08, 2003 10:56 am
Posts: 35
Check this post

http://forum.hibernate.org/viewtopic.ph ... highlight=

hopefully this is what you were looking for.


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.