Hi all,

I am trying to embed AMQ and also use shared JDBC Master Slave. The DB
setting is as below:

    <persistenceAdapter>
        <jdbcPersistenceAdapter dataDirectory="${activemq.base}/data"
dataSource="#mssql-ds"/>
    </persistenceAdapter>

    <bean id="mssql-ds" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
       <property name="driverClassName"
value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
       <property name="url" 
  
value="jdbc:sqlserver://10.2.52.158:1433;databaseName=activemq;user=amqdba;password=amqdbtest"/>
   </bean>

As I know, if I use the above setup, it needs Spring Jars to resolve the
configuration. 

So could I configure these above DB info programmatically totally? Or there
is no way to do that, you only can do it in xml file?

Thanks in advance,

Kevin
-- 
View this message in context: 
http://old.nabble.com/How-to-configure-DB-datasource-programmatically-when-using-JDBC-Master-Slave--tp26683387p26683387.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to