activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r412141 - /incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/xbean/activemq.xml
Date Tue, 06 Jun 2006 15:12:25 GMT
Author: jstrachan
Date: Tue Jun  6 08:12:25 2006
New Revision: 412141

URL: http://svn.apache.org/viewvc?rev=412141&view=rev
Log:
added a better example XML configuration file we can use for snippet macro examples

Modified:
    incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/xbean/activemq.xml

Modified: incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/xbean/activemq.xml
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/xbean/activemq.xml?rev=412141&r1=412140&r2=412141&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/xbean/activemq.xml
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/xbean/activemq.xml
Tue Jun  6 08:12:25 2006
@@ -17,14 +17,19 @@
 
 <!-- this file can only be parsed using the xbean-spring library -->
 <!-- START SNIPPET: xbean -->
-<beans xmlns="http://activemq.org/config/1.0">
+<beans>
 
   <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
 
-  <broker useJmx="true">
+  <broker useJmx="true" xmlns="http://activemq.org/config/1.0">
 
     <persistenceAdapter>
       <journaledJDBC journalLogFiles="5" dataDirectory="${basedir}/target/foo" />
+      
+      <!-- To use a different dataSource, use the following syntax : -->
+      <!-- 
+      <journaledJDBC journalLogFiles="5" dataDirectory="${basedir}/activemq-data" dataSource="#mysql-ds"/>
+       -->
     </persistenceAdapter>
 
     <transportConnectors>
@@ -39,5 +44,15 @@
     </networkConnectors>
   </broker>
 
+  <!-- MySql DataSource Sample Setup -->
+  <!-- 
+  <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
+    <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
+    <property name="url" value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/>
+    <property name="username" value="activemq"/>
+    <property name="password" value="activemq"/>
+    <property name="poolPreparedStatements" value="true"/>
+  </bean>
+  -->  
 </beans>
 <!-- END SNIPPET: xbean -->



Mime
View raw message