Hi,

> Let's say: jdbc:h2:mem:testdb;MULTI_THREADED=1
> Yes, as you proposed, i just wanna to share the same database (with database
> name) to several threads in the application.

This should work (it works for me).

> The question is: whether it's possible to monitor the database "testdb"
> condition from an external tool?

Yes, but then you need to start the server from within the same
process that created the database. See "Mixed Mode" in:
http://www.h2database.com/html/features.html#connection_modes

>  I tried to connect to "testdb" during the
> execution of the application, using:
> "java -cp h2-1.1.107.jar org.h2.tools.Server"

This doesn't work, because you started the server from a different
process. You have two processes:

1) your application
2) the server

You need to combine them:

1) your application + the server

Therefore you can't use the Server tool. You need to start the server
from within your application, see also
http://www.h2database.com/html/tutorial.html#using_server "Starting
the Server within an Application".

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