Hi,

That's weird, it works for me. What version of H2 do you use? What happens
if you replace "nio:" with "file:"? My test case is:

import java.sql.Connection;
import java.sql.DriverManager;
import org.h2.tools.DeleteDbFiles;
import org.h2.tools.Server;
public class TestSimpleDb {
    public static void main(String... args)
            throws Exception {
        Class.forName("org.h2.Driver");
        DeleteDbFiles.execute("~/temp", null, true);
        Server server = Server.createTcpServer("-tcp").start();
        String url = "jdbc:h2:tcp://Localhost/nio:/Users/thomasm/" +
            "temp/test;MULTI_THREADED=1";
        Connection conn;
        conn = DriverManager.getConnection(url);
        System.out.println("Start the H2 Console now and connect to");
        System.out.println(url);
        Thread.sleep(Integer.MAX_VALUE);
        conn.close();
        server.stop();
    }
}

Regards,
Thomas

-- 
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.

Reply via email to