I have a web application that I want to create a H2 database on startup if 
it does not exist, and then it is attached to by some servlet applications 
via a tcp server. I cannot not figure out which is the best way to do this 
so please say if the following way is why I'm having problems. I first 
start a tcp server using the following code:

Server.createTcpServer(new String[]{"-tcpPort", "1234", "-baseDir", 
"/patgh/to/db/file/dir/", "-key", "databasename"}).start();
// 
I then connect to it via the following url:

jdbc:h2:tcp://localhost:1234/databasename

All seems to work but if I write to the database, commit the inserts etc, 
and before closing open another connection to the database using the same 
url, I get nothing in the database.Am I missing something?

John

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to