|
My issue is basically this...
I am using the FILE version of HSQLDB to access CVS
files so I can import them into my (Oracle /or/ Postgres) database.
I manually create these files with one process and
using the HSQL driver and Hibernate to access the data and take care of all the
Dirty Work for me.
Works very well stand alone. But when I tried
to incorporate it into my Tomcat/Spring/Hibernate framework, it just locks up
(HSQLDB.lck).
I discovered this is because I created a
HSQLHibernateSessionFactory bean using the HSQLDataSource in my
application-context.xml.
On startup Spring must load these and lock them. It
doesn't release them again until tomcat is terminated.
I removed the references from my
application-context.xml and used a straight forward hibernate-HSQLDB.cfg.xml
file configuration. Basically skipped spring all together.. and it works
fine.
I would like to utilize the spring framework.. is
there a better way to do this? I don't want to run SERVER mode on HSQL
since they are basically only temporary import and export files.
What would you suggest?
Cheers
Troy
|
- [Hsqldb-developers] HSQLDB.lck file issues Troy McKinnon
