activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qi Liu <feiji1...@gmail.com>
Subject A question about persistence using Oracle
Date Fri, 20 Jul 2007 10:37:44 GMT

I've configed my activemq.xml file like this :
<beans>
	<bean
	
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
/>

	<broker useJmx="false" xmlns="http://activemq.org/config/1.0" >

		<transportConnectors>
			<transportConnector uri="tcp://localhost:61616"
				discoveryUri="multicast://default" />
		</transportConnectors>

		<networkConnectors>
			<networkConnector uri="multicast://default" />
		</networkConnectors>

	</broker>
	<persistence>
		<jdbcPersistence dataSourceRef="#oracle-ds" />
	</persistence>

	<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:@MYIP:1521:JDBC_USER" />
		<property name="username" value="user" />
		<property name="password" value="pass" />
		<property name="poolPreparedStatements" value="true" />
	</bean>
</beans>




and i hope i can use Oracle for persistence ,but  it seems that the
persistence is done by Journal(actually , i don't konw what Journal is , it
seems the default persistence model), and the segment of log like :
  信息: ActiveMQ 4.1.1 JMS Message Broker (localhost) is starting
2007-7-20 18:27:49 org.apache.activemq.broker.BrokerService getBroker
信息: For help or more information please see:
http://incubator.apache.org/activemq/
2007-7-20 18:27:51 org.apache.activemq.store.jdbc.JDBCPersistenceAdapter
createAdapter
信息: Database driver recognized: [apache_derby_embedded_jdbc_driver]
2007-7-20 18:27:53 org.apache.activemq.store.jdbc.DefaultDatabaseLocker
start
信息: Attempting to acquire the exclusive lock to become the Master broker
2007-7-20 18:27:53 org.apache.activemq.store.jdbc.DefaultDatabaseLocker
start
信息: Becoming the master on dataSource:
org.apache.derby.jdbc.EmbeddedDataSource@1ce85c4
2007-7-20 18:27:53
org.apache.activemq.store.journal.JournalPersistenceAdapter recover
信息: Journal Recovery Started from: Active Journal: using 2 x 20.0 Megs at:
D:\eclipse\workspace\springTest\activemq-data\localhost\journal
2007-7-20 18:27:53
org.apache.activemq.store.journal.JournalPersistenceAdapter recover
信息: Journal Recovered: 0 message(s) in transactions recovered.


so, can anybody tell me where the mistake lies?
-- 
View this message in context: http://www.nabble.com/A-question-about-persistence-using-Oracle-tf4116294s2354.html#a11705812
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message