-
1. Re: Configuring my activeMQ instance to use Oracle DB for Persistence
afilippov Nov 10, 2016 2:08 PM (in response to stephenwallen)Hi Stephen,
In the corresponding broker profile create file broker.xml to override and keep intact default broker.xml from mq-broker profile.
Add this bean into new broker.xml:
<bean id="oracle-ds" class="oracle.jdbc.pool.OracleDataSource" destroy-method="close">
<property name="URL" value="jdbc:oracle:thin:@orcl-host:1521:orcl"/>
<property name="user" value="usr"/>
<property name="password" value="pwd"/>
<property name="connectionCachingEnabled" value="true"/>
</bean>
Instead of:
<persistenceAdapter>
<kahaDB directory="${data}/kahadb"/>
</persistenceAdapter>
Use:
<persistenceAdapter>
<jdbcPersistenceAdapter dataSource="#oracle-ds" />
</persistenceAdapter>
Besides that add:
bundle.wrap\:mvn\:com.oracle/ojdbc7/12.1.0.2.0 = wrap:mvn:com.oracle/ojdbc7/12.1.0.2.0
to io.fabric8.agent.properties in the broker profile.
-
2. Re: Configuring my activeMQ instance to use Oracle DB for Persistence
stephenwallen Nov 11, 2016 5:50 AM (in response to afilippov)Thanks A.F. I'll give this a go.
When you say 'In the corresponding broker profile create file broker.xml' do you mean from inside the fuse console? e.g. using profile-edit ? Or do you mean creating a physical file that should be put in a certain folder?
Stephen
-
3. Re: Configuring my activeMQ instance to use Oracle DB for Persistence
afilippov Nov 11, 2016 5:52 AM (in response to stephenwallen)Stephen,
I mean profile-edit.