activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From penny506 <kevin.pe...@gmail.com>
Subject Re: ActiveMQ + SQL Server
Date Sat, 10 Nov 2012 07:21:00 GMT
I'm using 5.7 and this works by referencing the dataSource using an initial
Pound sign as such:
<persistenceAdapter>
			 <jdbcPersistenceAdapter dataDirectory="../activemq-data"
dataSource="#mssql-ds" createTablesOnStartup="true" useDatabaseLock="false">
				<adapter><imageBasedJDBCAdaptor/></adapter>
			</jdbcPersistenceAdapter>
  
        </persistenceAdapter>

Then out in the bean declaration you reference it by the name you gave it

		
<bean id="mssql-ds" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-SQL-Server-tp2343534p4659152.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message