camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r981029 - in /camel/trunk/components/camel-jms/src/test: java/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.java resources/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.xml
Date Sat, 31 Jul 2010 10:27:47 GMT
Author: davsclaus
Date: Sat Jul 31 10:27:46 2010
New Revision: 981029

URL: http://svn.apache.org/viewvc?rev=981029&view=rev
Log:
CAMEL-3012: CamelContext supports suspend/resume to temporary stop a Camel application.

Modified:
    camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.java
    camel/trunk/components/camel-jms/src/test/resources/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.xml

Modified: camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.java?rev=981029&r1=981028&r2=981029&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.java
(original)
+++ camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.java
Sat Jul 31 10:27:46 2010
@@ -39,7 +39,7 @@ public class JmsInOutWithSpringRestartIs
 
     @Test
     public void testRestartSpringIssue() throws Exception {
-        context.start();
+        context.startRoute("foo");
 
         ProducerTemplate producer = context.createProducerTemplate();
         producer.start();
@@ -48,21 +48,12 @@ public class JmsInOutWithSpringRestartIs
         assertEquals("Bye Foo", out);
 
         // on purpose forget to stop the producer and it should still work
-        //producer.stop();
-        context.stop();
 
-        // TODO: Does not work properly with AMQ 5.3.1
-        // Thread.sleep(2000);
-        // context.start();
+        context.stopRoute("foo");
+        context.startRoute("foo");
 
-        //producer = context.createProducerTemplate();
-        //producer.start();
-
-        // out = producer.requestBody("activemq:queue:foo", "Bar");
-        //assertEquals("Bye Bar", out);
-
-        //producer.stop();
-        //context.stop();
+        out = producer.requestBody("activemq:queue:foo", "Bar");
+        assertEquals("Bye Bar", out);
     }
 
 }

Modified: camel/trunk/components/camel-jms/src/test/resources/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.xml
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/test/resources/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.xml?rev=981029&r1=981028&r2=981029&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/test/resources/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.xml
(original)
+++ camel/trunk/components/camel-jms/src/test/resources/org/apache/camel/component/jms/issues/JmsInOutWithSpringRestartIssueTest.xml
Sat Jul 31 10:27:46 2010
@@ -22,7 +22,7 @@ http://www.springframework.org/schema/be
 http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
 
     <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring" autoStartup="false">
-        <route>
+        <route id="foo">
             <from uri="activemq:queue:foo"/>
             <transform><simple>Bye ${body}</simple></transform>
         </route>



Mime
View raw message