HSQLDB not correctly shutdown
843859Jun 14 2006 — edited Jun 22 2006i am using hsqldb1.8.0 and trying to access the standlone database thru hibernate..
my hibernate configuration file contains
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "file:///D//IBM//Project//Website//hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="connection.url">jdbc:hsqldb:d:\\ibm\\project\\website\\data\\database;shutdown = true</property>
<property name="connection.username">sa</property>
<property name="connection.password"></property>
<property name="hibernate.connection.pool_size">10</property>
<property name="dialect">org.hibernate.dialect.HSQLDialect</property>
<property name="hibernate.show_sql">true</property>
<property name="autocommit">true</property>
<mapping resource="Login.hbm.xml"/>
</session-factory>
</hibernate-configuration>
once i run my application the database gets locked ..
i need to restart the server to unlock the database..
I am not able to delete or modify the .lck file from outside to release the lock..
And i get an error if i run my app again
[6/14/06 16:37:32:062 IST] 683c7148 JDBCException E org.hibernate.util.JDBCExceptionReporter The database is already in use by another process: org.hsqldb.persist.NIOLockFile@25d472e8[file =D:\IBM\Project\Website\data\database.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: The process cannot access the file because another process has locked a portion of the file : D:\\IBM\Project\Website\data\database.lck
I am building a web application and using WSAD IDE..
Can anybody please help me out with the problem
Thanks in advance