mirror of https://github.com/apache/activemq.git
added a better load testing example
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@643939 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0b33ad6074
commit
0aea7828c7
|
@ -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>
|
||||
|
|
|
@ -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"/>
|
||||
<from uri="activemq:foo.example.A"/>
|
||||
<to uri="mock:results?expectedCount=10000&reportGroup=100&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 -->
|
||||
|
|
Loading…
Reference in New Issue