-->
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.  [ 3 posts ] 
Author Message
 Post subject: in-memory HSQLDB issues
PostPosted: Wed Sep 14, 2005 5:20 pm 
Beginner
Beginner

Joined: Sun May 02, 2004 8:04 am
Posts: 36
Hi,

I was using my own PersistenceManager singleton which wrapped a Hibernate SessionFactory and did a session.open and session.close for all db operations and then switched all my DAOs to extend from Spring's HibernateDaoSupport (Hibernate 3). I had also been using in-memory HSQLDB with Tomcat in a web application. What I noticed is that before the migration the data would actually persist between successive Tomcat restarts, but now it seems it doesn't. It seems I now have to run HSQLDB in stand-alone server mode... is this normal?

Thanks, Jason


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 14, 2005 5:42 pm 
Beginner
Beginner

Joined: Sun May 02, 2004 8:04 am
Posts: 36
I should mention that the only difference is before I was using

hibernate.connection.url=jdbc:hsqldb:/database/gridsphere

to point to the flat file DB and now I've been forced to use

hibernate.connection.url=jdbc:hsqldb:hsql://localhost

in order for the data to be persisted between server restarts


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 15, 2005 5:36 am 
Senior
Senior

Joined: Thu Aug 04, 2005 4:54 am
Posts: 153
Location: Birmingham, UK
Read the HSQL documentation and note the difference between CREATE TABLE and CREATE CACHED TABLE. Also you should be running it in stand alone server mode, the documentation clearly states that in memory mode is best for small apps not for production use in multiuser environments.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.