Ladies and gentlemen, ask a question:
I use the H2 as a Tomcat6.0.18 a Web application DB,How to locate the
DB file Web application root directory?
Due to use DataSourceRealm, so listene way to overcome this problem,
context.xml as follows:
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<Resource name="jdbc/fm2" auth="Container"
type="javax.sql.DataSource" driverClassName="org.h2.Driver"
url="jdbc:h2:/fm2" username="tqb" password="111" maxActive="20"
maxIdle="10" maxWait="-1" />
<Realm className="org.apache.catalina.realm.DataSourceRealm"
debug="99" dataSourceName="java:/jdbc/fm2" userTable="realms"
userNameCol="username" userCredCol="password"
userRoleTable="realms"
roleNameCol="role" />
</Context>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---