Re: Hibernate 3.0

James <[email protected]> Wed, 6 Jul 2005 21:11:22 -0700 (PDT)
Newsgroups gmane.comp.db.mckoi
Message-ID <[email protected]>
>I should have mentioned I'm trying to get Hibernate
>example to work. I set the DB properties for Mckoi.  
>It gets this error after creating the sample tables 
>and when it attempts to insert some test data.
Yes , the error is possible if you are using a
connection pool.

Are you using a connection pool?  Or is it a single
connection?  (If the pool can be set to max. 1
connection it would be good to try it that way)

Are you using Hibernate in Spring?  If so, try using
DriverManagerDataSource like bean below and let me
know if it works.

<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property
name="driverClassName"><value>com.mckoi.JDBCDriver</value></property>
<property
name="url"><value>jdbc:mckoi://localhost:9001/APP/</value></property>
<property name="username"><value></value></property>
<property name="password"><value></value></property>
</bean>




---------------------------------------------------------------
Mckoi SQL Database mailing list  http://www.mckoi.com/database/
To unsubscribe, send a message to [email protected]