-->
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: Providing Connections
PostPosted: Sat Sep 27, 2003 1:46 am 
Regular
Regular

Joined: Tue Sep 02, 2003 5:09 pm
Posts: 81
Location: Whitefish Montana
I was surprised to see that if I specify connection properties in a hibernate-configuration they seem to take precedence over a session provided connection. What I found was that if I create a hibernate session and specify a property and also specify connection properties that include user/password in a hibernate configuration.

In testing, it seems that I have to specify a connection driver/url with no password when using my own home grown connection.

Another unusual thing was that with a DB2 session-factory I have to specify a name. That name is used to do a JNDI lookup (I assume for a datasource) but on failure my db2 connection is used with no problems.

I am using my own connection because I am testing a datasource implementation and don't want hibernate to interfere until I am sure it works correctly. What is the minimum configuration when I supply my own connection and is it dialect specific? Should I provide any session-factory configuration when providing connections?

Thanks for any help.


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.