-->
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: Is there any equivalent api for session.connection() method?
PostPosted: Fri Dec 14, 2007 12:02 pm 
Newbie

Joined: Mon Jan 03, 2005 3:18 am
Posts: 8
I am trying to get access to the connection object. The only way I found was
Code:
session.connection()


This method is deprecated and I did not find an equivalent api.

Please help. Thanks in advance.


PS: I need to get connection object because of

http://forum.hibernate.org/viewtopic.php?t=982112


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 14, 2007 3:49 pm 
Beginner
Beginner

Joined: Fri Jun 25, 2004 11:47 am
Posts: 34
Hi,

What's your working context, an app server like tomcat Websphere or other. If yes, then you just have to lookup the datasource via jndi. If it's in c3p0 there is maybe also a way to lookup the connection, but i don't know rith now....


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.