Hi,
Server.createTcpServer(new String[]{"-tcpPort", "1234", "-baseDir",
> "/patgh/to/db/file/dir/", "-key", "databasename"}).start();
>
If I try that I get an ArrayIndexOutOfBoundsException, because the
parameter "-key" expects another parameter. Could you try this instead:
Server.createTcpServer("-tcpPort", "1234", "-baseDir",
"/patgh/to/db/file/dir/").start();
You use the same database URL for all connections, right?
Regards,
Thomas
>
> //
> 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]<javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');>
> .
> To post to this group, send email to
> [email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>
> .
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>
--
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.