mirror of https://github.com/apache/activemq.git
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:
parent
4ce744b16b
commit
73ef5bea04
|
@ -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>
|
||||
-->
|
||||
|
||||
|
|
|
@ -101,11 +101,14 @@
|
|||
</bean>
|
||||
-->
|
||||
|
||||
<!-- Embedded Derby DataSource Sample Setup -->
|
||||
<!-- Oracle DataSource Sample Setup -->
|
||||
<!--
|
||||
<bean id="derby-ds" class="org.apache.derby.jdbc.EmbeddedDataSource">
|
||||
<property name="databaseName" value="derbydb"/>
|
||||
<property name="createDatabase" value="create"/>
|
||||
<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>
|
||||
-->
|
||||
|
||||
|
|
Loading…
Reference in New Issue