Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/openregistry">
	<!-- Turn off tomcat session persistance -->
   	<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false">
    	<Store className="org.apache.catalina.session.FileStore"/>
   	</Manager>

 	
	<Resource
   		name="jdbc/MyDataSource"
   		auth="Container"
   		type="com.mchange.v2.c3p0.ComboPooledDataSource"
        description="OpenRegistry Database"
        factory="org.apache.naming.factory.BeanFactory"
        acquireIncrement="5"
        minPoolSize="5"
        maxPoolSize="256"
        maxIdleTimeExcessConnections="900"
        driverClass="oracle.jdbc.driver.OracleDriver"
        jdbcUrl="jdbc:oracle:thin:@databaseserver.com:dbalias"
        user="@@<at:var at:name="username" />@@"
        password="@@<at:var at:name="password" />@@"
        maxStatementsPerConnection="37"
        numHelperThreads="5"
        testConnectionOnCheckin="true"
        idleConnectionTestPeriod="300"
        preferredTestQuery="SELECT SYSDATE FROM DUAL"/>
</Context>

...

Warning

Assuming your user has the appropriate permissions, the database structure will be created for you. You'll need to populate it with some basic data though (Phone Types, People, etc.) before you can really use it. See Sample Database Inserts. As of this writing, only the "Add Role" use case is complete, thus it assumes information already exists.

...