Hi,
The option tcpAllowOthers allows non-localhost connections. So localhost is
fine even if the option is missing.
If the database URL starts with "jdbc:h2:ssl:" then the connection is over
SSL. The server won't accept non-SSL connections.
Regards,
Thomas
On Friday, April 26, 2013, Jamie Wang wrote:
> Hi,
>
> I am able to start the h2 server as as an embedded in-memory server with
> the following two lines of code:
> String[] svrArgs = new String[] { "-tcpSSL", "-tcpPort", "8082" };
> h2Server = Server.createTcpServer(svrArgs[0]).start();
>
> Notice I do not have the property "-tcpAllowOthers" in the arguments. On
> the client side (the web console comes with H2), I used following
> connection string:
> jdbc:h2:ssl://localhost/mem:MyDB;DB_CLOSE_DELAY=-1 and this connects
> fine.
>
> I am wondering about these two questions:
>
> 1) Why the web console app can connect to the H2 server since I started
> the server without the property "-tcpAllowOthers"?
> 2) How can I verify if the connection is really going over SSL? Is there a
> helper method I can call on the server side to ask during runtime? Or is
> there a tool that can read what's really going over the socket?
>
> Thanks for your time.
> Jamie
>
> --
> 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({},
> 'cvml', 'h2-database%[email protected]');>.
> To post to this group, send email to
> [email protected]<javascript:_e({}, 'cvml',
> '[email protected]');>
> .
> Visit this group at http://groups.google.com/group/h2-database?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.