-->
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: How to configure Interceptors using configuration files
PostPosted: Mon Nov 19, 2007 3:42 am 
Newbie

Joined: Wed Sep 26, 2007 5:17 am
Posts: 2
Location: India
Hi,

I am using Hibernate version: 3.x; and am trying to integrate interceptors in my Technology stack. I have been reading many help documents, and any examples/samples have pointed me to a Java code to integrate interceptor in session or session-factory.


Session

Code:
Session session = sf.openSession( new AuditInterceptor() );


Session Factory

Code:
new Configuration().setInterceptor( new AuditInterceptor() );


I am looking at a code, where I can add my interceptors in a configuration file and when my session-factory is getting created it should be added to the factory right-away.

Any help/pointers would be appreciated.

Thanks & Regards
Kapil Viren Ahuja


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 19, 2007 5:12 am 
Regular
Regular

Joined: Wed Apr 25, 2007 11:44 pm
Posts: 59
checkout this one
http://www.hibernate.org/318.html


Top
 Profile  
 
 Post subject: Problem not solved...
PostPosted: Thu Nov 22, 2007 12:36 am 
Newbie

Joined: Wed Sep 26, 2007 5:17 am
Posts: 2
Location: India
This one is an example of the interceptor, and not how to configure it using properties.

_________________
Cheers
Kapil Viren Ahuja


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.