Hi,

> can't I just create a connection for any local data and call the TcpServer 
> class directly?

Yes you can. See also
http://www.h2database.com/html/features.html#connection_modes

> The main method of the Server class would open a console window would it not?

It depends on the parameters you use. See
http://www.h2database.com/javadoc/org/h2/tools/Server.html#main_String...

> So far I have databases all over my computer

Try using an absolute path in the database URL, for example
jdbc:h2:/data/h2/test - see also
http://www.h2database.com/html/features.html#database_url and
http://www.h2database.com/html/cheatSheet.html

> trying to decipher and understand h2's jdbcx folder
> and how I might structure the jndi name and make available
> container managed connection pools and datasources with an h2 embedded app

All that may not be necessary. Personally, I avoid using JNDI, data
sources, and so on. It's complicated and doesn't help much. That's
just my personal view :-) There are some advantages (connection pools
may be a bit faster), but it's complex.

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