> > A server program that has: > > Server server = Server.createTcpServer().start(); > > Only one server may run at the same time. If the server is already > running, and you start this program a second time, you will get the > exception "Exception opening port "9092" (port may be in use), cause: > "java.net.BindException: Address already in use: JVM_Bind" > [90061-126]". (You _could_ start multiple server concurrently, but > then they all need to run on a different port). > > Also, you need to ensure the H2 Console is not running at the same > time (because the H2 Console will also start a TCP server). >
Thanks, I've sorted that out now. > > (Also tried with the path name as you showed me, but i > > dont know how to find the location of a database on my hard drive) > > It should be in the current user home directory. Just search for the > file name test.h2.db. > > > Also, after a minute or so, both my programs breakdown and give the > > the following warning org.h2.jdbc.JdbcSQLException: Connection is broken: > > "session closed" [90067-126] > > Could that be when you stop the H2 Console, or the Server? I have reproduced this error in a new topic to go more in detail. I don't stop the server, and I'm really confused about it. .. Thanks for all the help!!! -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
