Using HSQLDB in the Google-App Engine

In my lightweight web application that will run on google-app-engine, I want to use HSQLDB.

When starting HSQLDB, I use the following URL: "jdbc: hsqldb: file: ./ database /".

In the local tomcat, everything is going well, but in the google engine application I get an exception below;

Constructor threw exception; nested exception is com.hp.hpl.jena.sdb.SDBException: SQL Exception while connecting to database: jdbc:hsqldb:file:./database/appname : File input/output error ./database/appname.properties java.security.AccessControlException: access denied (java.io.FilePermission ./database write)

Can anyone give a clue on determining the correct URL to run HSQL-db in a Google application?

+3
source share
3 answers

I do not think GAE allows you to write files at this level.

You can use the HSQLDB memory database, which does not require a file, but will be erased when you restart the application.

Why aren't you using JDO?

+2
source

GAE , , , , HSQLDB GAE. , HSQLDB IN, . GAE, , JDO JPA. Appengine. . , , .

+2

, Java H2. . H2GAE (, ). .

+1

All Articles