Factory will connect to the H2 database using a DataSource you provide.
If you don't know what that means please use H2DBCPDataStoreFactory (it will
make use of the popular commons dbcp library as an implementation of DataSource).
Please see the public static Params for a description of what is needed to connect to this
beast. The information is available in a dynamic fashion via getPrametersInfo() if you
are building a user interface on the fly.
Please note that a data source name is required (even if you are not using JNDI) -
it is good Java EE Manners to register your DataSource and this gives us a chance to
check up on you, the name will also be used in log messages.
author: Jody Garnett |