activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r643939 - in /activemq/trunk/activemq-camel-loadtest: pom.xml src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml
Date Wed, 02 Apr 2008 15:18:05 GMT
Author: jstrachan
Date: Wed Apr  2 08:18:04 2008
New Revision: 643939

URL: http://svn.apache.org/viewvc?rev=643939&view=rev
Log:
added a better load testing example

Modified:
    activemq/trunk/activemq-camel-loadtest/pom.xml
    activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml

Modified: activemq/trunk/activemq-camel-loadtest/pom.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-camel-loadtest/pom.xml?rev=643939&r1=643938&r2=643939&view=diff
==============================================================================
--- activemq/trunk/activemq-camel-loadtest/pom.xml (original)
+++ activemq/trunk/activemq-camel-loadtest/pom.xml Wed Apr  2 08:18:04 2008
@@ -88,7 +88,10 @@
       <artifactId>camel-jms</artifactId>
       <version>${camel-test-version}</version>
     </dependency>
-
+    <dependency>
+      <groupId>commons-pool</groupId>
+      <artifactId>commons-pool</artifactId>
+    </dependency>
 
 
     <!-- for XML parsing -->
@@ -131,7 +134,7 @@
         <configuration>
           <forkMode>pertest</forkMode>
           <childDelegation>false</childDelegation>
-          <useFile>true</useFile>
+          <!-- <useFile>true</useFile> -->
           <argLine>-Xmx512M</argLine>
 
           <systemProperties>

Modified: activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml?rev=643939&r1=643938&r2=643939&view=diff
==============================================================================
--- activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml
(original)
+++ activemq/trunk/activemq-camel-loadtest/src/test/resources/org/apache/activemq/soaktest/localBroker/LocalBrokerLoadTest-context.xml
Wed Apr  2 08:18:04 2008
@@ -28,12 +28,24 @@
 
     <route>
       <from uri="dataset:myDataSet"/>
-      <to uri="activemq:example.A"/>
+
+      <!-- lets use concurrency -->
+      <to uri="activemq:foo.example.A"/>
+<!--
+      <thread coreSize="1" daemon="true" keepAliveTime="1000" maxSize="1" priority="1"
stackSize="1000">
+      </thread>
+-->
     </route>
 
     <route>
-      <from uri="activemq:example.B"/>
-      <to uri="dataset:myDataSet"/>
+      <from uri="activemq:foo.example.A"/>
+      <to uri="mock:results?expectedCount=10000&amp;reportGroup=100&amp;resultWaitTime=400000"/>
+      <!--
+      <resequencer>
+        <simple>header.camelDataSetIndex</simple>
+        <to uri="dataset:myDataSet"/>
+      </resequencer>
+-->
     </route>
 
   </camelContext>
@@ -43,5 +55,11 @@
     <property name="reportCount" value="100"/>
   </bean>
 
+  <bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
+<!--
+    <property name="useSingleConnection" value="true"/>
+    <property name="usePooledConnection" value="false"/>
+-->
+  </bean>
 </beans>
 <!-- END SNIPPET: example -->



Mime
View raw message