-->
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: Getting the db connection in Interceptor implementation
PostPosted: Mon Oct 25, 2004 4:27 am 
Newbie

Joined: Tue Oct 05, 2004 4:56 am
Posts: 7
Hibernate version: 2.1.6

Name and version of the database you are using: Oracle 9.2.0.5

In my Interceptor implementation i'd need the database connection of the Session to get the current time from the db. The only solution i found until now is to pass the Connection in the constructor of my class which is not possible if running withing an J2EE app server (i don't even know the db conn, i just get my SessionFactory with a context lookup).

Any ideas or hints?

thx
Roman


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.