Hi All.

I try to use h2 db in spring DataSource.
        <bean id="dataSource"
                
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
                <property name="driverClassName">
                        <value>org.h2.Driver</value>
                </property>
                <property name="url">
                        <value>
                            jdbc:h2:file:C:/tomcat6.0/webapps/sample/resources/
data;ACCESS_MODE_DATA=r
                        </value>
                </property>
...
        </bean>

If I write physical file path on url, it is work.
But I can't find a solution how can I can specify relative path like
below.
( I will distribute war to other person, it can be specify absolute
file path on jdbc url. )
jdbc:h2:file:/resources/data;ACCESS_MODE_DATA=r

Is there any solution to specify relative path in jdbc url ?

-- 
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