Hi,

> In summary would I need to put those server code lines in each of my
> applications accessing the database?

No. The server only needs to be started once (in one process). Each of
the clients should then access the database over this (and only this)
server.

I'm not sure if you already read the connection mode documentation:
http://www.h2database.com/html/features.html#connection_modes

I will extend the documentation about the Server a bit:

"
When using the server mode (sometimes called remote mode or
client/server mode), an application opens a database remotely using
the JDBC or ODBC API. A server needs to be started within the same or
another virtual machine, or on another computer. Many applications can
connect to the same database at the same time, by connecting to this
server. Internally, the server process opens the database(s) in
embedded mode.
"

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