Results 1 to 2 of 2

Thread: HSQLDB datasource is not correctly shutdown

  1. #1
    Join Date
    Apr 2005
    Location
    Brussels, Belgium
    Posts
    100

    Default HSQLDB datasource is not correctly shutdown

    Hi,

    I have some problems with an HSQLDB datasource in in-process mode. My datasource is configured like this :
    Code:
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
            <property name="driverClassName"><value>org.hsqldb.jdbcDriver</value></property>
            <property name="username"><value>sa</value></property>
            <property name="url"><value>jdbc&#58;hsqldb&#58;file&#58;C&#58;\dev\pfe\schaman/target/webapp/WEB-INF/db/schamandb</value></property>
        </bean>
    But apparently the "destroy-method="close" is not enough since when I stop my web application, the HSQLDB lock file is left behind and I can't access my database anymore (without rebooting my computer :roll: ).

    I read on HSQLDB forums that it was because the SHUTDOWN SQL method had to be called so that the lock file can be released, but my question is, how can I integrate that in my Spring configuration ?

    Thx in advance.[/code]
    Sebastien Arbogast

  2. #2
    Join Date
    Jul 2008
    Posts
    1

    Default

    Sorry to awake this very old thread, but google sent me on this page.

    I have exactly the same problem. Do you know where to set the Shutdown statement. I tried to execute this after the transaction but after the getJdbcTemplate does not success to open the connection.

    ( error details: connection exception: closed; nested exception is java.sql.SQLException: connection exception: closed)

    Thanks you if someone can help or give me a more recent link (if existing)

    BR
    Patrick

Similar Threads

  1. Replies: 4
    Last Post: Nov 24th, 2005, 02:38 AM
  2. JBoss DataSource not found
    By moacsjr in forum Data
    Replies: 10
    Last Post: Aug 25th, 2005, 01:26 PM
  3. Odd behaviour when injecting TransactionTemplate
    By damon311 in forum Container
    Replies: 3
    Last Post: Jul 23rd, 2005, 11:21 AM
  4. JPOX, HSQLDB and Spring
    By mraible in forum Data
    Replies: 2
    Last Post: Mar 1st, 2005, 08:44 AM
  5. Ignoring missing Jndi DataSource within IDE?
    By Bill Pearce in forum Container
    Replies: 2
    Last Post: Oct 27th, 2004, 09:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •