activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r534151 - /activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java
Date Tue, 01 May 2007 16:38:52 GMT
Author: jstrachan
Date: Tue May  1 09:38:51 2007
New Revision: 534151

URL: http://svn.apache.org/viewvc?view=rev&rev=534151
Log:
fixed compile errors

Modified:
    activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java

Modified: activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java?view=diff&rev=534151&r1=534150&r2=534151
==============================================================================
--- activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java
(original)
+++ activemq/camel/trunk/camel-eg-jms-file/src/main/java/org/apache/camel/samples/jmstofile/CamelJmsToFileSample.java
Tue May  1 09:38:51 2007
@@ -27,6 +27,7 @@
 import org.apache.camel.Endpoint;
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
+import org.apache.camel.Producer;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.file.FileExchange;
 import org.apache.camel.component.jms.JmsEndpoint;
@@ -55,7 +56,12 @@
         
         CamelClient client = new CamelClient(context);
         context.start();
-        client.sendValue("activemq:queue:test.a", "foo");
+        client.send("jms:queue:test.a", new Processor() {
+            public void process(Exchange exchange) throws Exception {
+                exchange.getIn().setBody("foo");
+            }
+        });
         Thread.sleep(1000);
+        context.stop();
     }
 }



Mime
View raw message