added an example of using Oracle JDBC along with using DBCP with Oracle rather than the non-pooling default that comes with Oracle

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@433697 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-08-22 17:10:58 +00:00
parent 4ce744b16b
commit 73ef5bea04
2 changed files with 16 additions and 11 deletions

View File

@ -98,10 +98,12 @@
<!-- Oracle DataSource Sample Setup -->
<!--
<bean id="oracle-ds" class="oracle.jdbc.pool.OracleDataSource">
<property name="URL" value="jdbc:oracle:thin:@localhost:1521:AMQDB"/>
<property name="user" value="scott"/>
<bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@localhost:1521:AMQDB"/>
<property name="username" value="scott"/>
<property name="password" value="tiger"/>
<property name="poolPreparedStatements" value="true"/>
</bean>
-->

View File

@ -100,15 +100,18 @@
<property name="poolPreparedStatements" value="true"/>
</bean>
-->
<!-- Embedded Derby DataSource Sample Setup -->
<!--
<bean id="derby-ds" class="org.apache.derby.jdbc.EmbeddedDataSource">
<property name="databaseName" value="derbydb"/>
<property name="createDatabase" value="create"/>
<!-- Oracle DataSource Sample Setup -->
<!--
<bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
<property name="url" value="jdbc:oracle:thin:@localhost:1521:AMQDB"/>
<property name="username" value="scott"/>
<property name="password" value="tiger"/>
<property name="poolPreparedStatements" value="true"/>
</bean>
-->
-->
<!-- Embedded Derby DataSource Sample Setup -->
<!--
<bean id="derby-ds" class="org.apache.derby.jdbc.EmbeddedDataSource">