The instructions below are temporary instructions to allow early adapters/testers to be able to build, deploy, and demonstrate the OpenRegistry project in its current state. The instructions below are not a reflection on how the final project may be built, packaged and deployed. The final project may look entirely different.
Info | ||
---|---|---|
| ||
This checklist can be used in conjunction with he instructions below. It was created as part of a test deployment in August 2012.
|
Retrieve the Source from Source Control
...
Step 5 is to set up your database access. You'll need to create an openregistry.xml similar to the one below and place it in $TOMCAT_HOME/conf/Catalina/localhost
Code Block | ||||
---|---|---|---|---|
| ||||
<?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="@@@username@@@"
password="@@@password@@@"
maxStatementsPerConnection="37"
numHelperThreads="5"
testConnectionOnCheckin="true"
idleConnectionTestPeriod="300"
preferredTestQuery="SELECT SYSDATE FROM DUAL"/>
</Context>
|
...
Assuming you have Tomcat running on port 8080, start up Tomcat ($TOMCAT_HOME/bin/startup.sh or $TOMCAT_HOME/bin/startup.bat) and point your web browser to:
Code Block |
---|
http://localhost:8080/openregistry/addPerson.htm
|
or
Code Block |
---|
http://localhost:8080/openregistry/addRole.htm?sorPersonKey=2&roleInfoKey=1
|
...