AMQ-1865 - Get camel load test working again.

I needed to increase the delay between produced messages
from the deafult 3 ms to 10ms. I think there are some
concurrency issues in Camel's dataset component.



git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@697964 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Anstey 2008-09-22 19:50:04 +00:00
parent e2d743ea8a
commit 3797622ed3
2 changed files with 23 additions and 12 deletions

View File

@ -25,7 +25,7 @@
<parent> <parent>
<groupId>org.apache.activemq</groupId> <groupId>org.apache.activemq</groupId>
<artifactId>activemq-parent</artifactId> <artifactId>activemq-parent</artifactId>
<version>5.1-SNAPSHOT</version> <version>5.3-SNAPSHOT</version>
</parent> </parent>
<artifactId>activemq-camel-loadtest</artifactId> <artifactId>activemq-camel-loadtest</artifactId>
@ -40,6 +40,10 @@
<groupId>org.apache.activemq</groupId> <groupId>org.apache.activemq</groupId>
<artifactId>activemq-core</artifactId> <artifactId>activemq-core</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-camel</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.apache.xbean</groupId> <groupId>org.apache.xbean</groupId>
<artifactId>xbean-spring</artifactId> <artifactId>xbean-spring</artifactId>
@ -59,7 +63,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.geronimo.specs</groupId> <groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-j2ee-jacc_1.0_spec</artifactId> <artifactId>geronimo-jacc_1.1_spec</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
@ -73,26 +77,25 @@
<groupId>org.apache.camel</groupId> <groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId> <artifactId>camel-core</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
<type>test-jar</type>
</dependency>
<dependency> <dependency>
<groupId>org.apache.camel</groupId> <groupId>org.apache.camel</groupId>
<artifactId>camel-spring</artifactId> <artifactId>camel-spring</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.camel</groupId> <groupId>org.apache.camel</groupId>
<artifactId>camel-jms</artifactId> <artifactId>camel-spring</artifactId>
<type>test-jar</type>
</dependency> </dependency>
<dependency> <dependency>
<groupId>commons-pool</groupId> <groupId>commons-pool</groupId>
<artifactId>commons-pool</artifactId> <artifactId>commons-pool</artifactId>
</dependency> </dependency>
<!-- for XML parsing -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</dependency>
<!-- =============================== --> <!-- =============================== -->
<!-- Testing Dependencies --> <!-- Testing Dependencies -->
<!-- =============================== --> <!-- =============================== -->

View File

@ -27,13 +27,14 @@
<camelContext xmlns="http://activemq.apache.org/camel/schema/spring"> <camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
<route> <route>
<from uri="dataset:myDataSet"/> <!-- sends messages every 10 milliseconds -->
<from uri="dataset:myDataSet?produceDelay=10"/>
<to uri="activemq:test.queue"/> <to uri="activemq:test.queue"/>
</route> </route>
<route> <route>
<from uri="activemq:test.queue"/> <from uri="activemq:test.queue"/>
<to uri="dataset:myDataSet"/> <to uri="dataset:myDataSet?produceDelay=10"/>
</route> </route>
</camelContext> </camelContext>
@ -51,5 +52,12 @@
</transportConnectors> </transportConnectors>
</broker> </broker>
<!-- Lets connect the Camel ActiveMQ component to the embedded broker.
See http://activemq.apache.org/camel/activemq.html for more information.
-->
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="brokerURL" value="tcp://localhost:61616" />
</bean>
</beans> </beans>
<!-- END SNIPPET: example --> <!-- END SNIPPET: example -->