Hi,

There is a new feature in H2 version 1.3.159 (2011-08-13) to redirect
database URLs: System property h2.urlMap (default: null). A properties file
that contains a mapping between database URLs. New connections are written
into the file. An empty value in the map means no redirection is used for
the given URL.

So if you set the system property (on the server side, where you start the
H2 Server) as follows:

java -Dh2.urlMap=/data/h2map.properties

and then map the database URL in this properties file, you can redirect from
(for example) jdbc:h2:postgre to jdbc:h2:mem:test;... or anything you want.

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